找不到支持-core-ui.aar离子3构建错误

时间:2018-06-07 21:30:14

标签: android cordova ionic-framework gradle ionic3

我无法构建我的Ionic 3应用,并且每次运行ionic cordova build android时都会收到以下错误。

FAILURE: Build failed with an exception.

* What went wrong:
 A problem occurred configuring root project 'android'.
 > Could not find support-core-ui.aar (com.android.support:support-core- 
ui:27.1.1). 

BUILD FAILED

 Searched in the following locations:
  https://jcenter.bintray.com/com/android/support/support-core- 
 ui/27.1.1/support-core-ui-27.1.1.aar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -- 
debug option to get more log output.
Total time: 17.493 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not find support-core-ui.aar (com.android.support:support-core- 
ui:27.1.1).
Searched in the following locations:
  https://jcenter.bintray.com/com/android/support/support-core- 
ui/27.1.1/support-core-ui-27.1.1.aar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or -- 
debug option to get more log output.

我之前已经构建了应用程序,但我不明白为什么它不起作用。

1 个答案:

答案 0 :(得分:1)

尝试将google()移到

的顶部
allprojects {
  repositories {
    google()
    jcenter()
    ....
  }
}