我无法构建我的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.
我之前已经构建了应用程序,但我不明白为什么它不起作用。
答案 0 :(得分:1)
尝试将google()
移到
allprojects {
repositories {
google()
jcenter()
....
}
}