【问题标题】:Could not find support-core-ui.aar Ionic 3 build error找不到 support-core-ui.aar Ionic 3 构建错误
【发布时间】:2018-11-17 21:53:31
【问题描述】:

我无法构建我的 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.

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

【问题讨论】:

    标签: android cordova ionic-framework gradle ionic3


    【解决方案1】:

    尝试将google() 移动到顶部

    allprojects {
      repositories {
        google()
        jcenter()
        ....
      }
    }
    

    【讨论】:

    • 我没有看到任何google()。我反而看到了`maven { url "https://maven.google.com"}
    猜你喜欢
    • 1970-01-01
    • 2018-11-09
    • 1970-01-01
    • 2021-02-27
    • 1970-01-01
    • 2018-10-08
    • 1970-01-01
    • 2019-02-22
    • 2020-07-05
    相关资源
    最近更新 更多