配置项目':CordovaLib'时发生问题。离子科尔多瓦

时间:2018-10-29 19:52:48

标签: android cordova ionic-framework

enter image description here

我的SDK已更新,但我似乎一次又一次显示此错误。当我运行ionic cordova build android时,似乎给了我这个错误。我还添加了屏幕截图。

还要更新我的NDK android-sdk->ndk-bundle->toolchains

org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':CordovaLib'.
    at 

1 个答案:

答案 0 :(得分:0)

这是因为jCenter删除了此程序包,因此构建现在依赖于google存储库,因此请使用google()作为您的首选。

     //Edit platforms/android/CordovaLib/build.gradle
     repositories {
        google()
        maven {
              url “https://maven.google.com”
        }
        jcenter () 
     } 


    //And edit platforms / android / build.gradle
    buildscript {
       repositories {
        google()
        maven {
        url “https://maven.google.com”
        }
        jcenter ()
    }

    allprojects {
       repositories {
       google()
       maven {
         url “https://maven.google.com”
       } 
      jcenter ()
    }
相关问题