繁体   English   中英

发生了配置根项目'android'

[英]occurred configuring root project 'android'

当我使用cordova build --release android时出现错误

这是命令提示符下的错误:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.google.android.gms:play-services-ads:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/maven-metadata.xml
         https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/
         file:/C:/Users/arnold/Downloads/android-sdk_r24.3.4-windows/android-sdk-windows/extras/android/m2repository/com/google/android/gms/play-services-ads/maven-metadata.xml
         file:/C:/Users/arnold/Downloads/android-sdk_r24.3.4-windows/android-sdk-windows/extras/android/m2repository/com/google/android/gms/play-services-ads/
     Required by:
         :android:unspecified

有人能帮我吗? 这真是令人沮丧我有搜索谷歌,但很多人在配置上有不同的错误我已经更新Android sdk中的所有安装文件。

尝试这个

android update sdk --no-ui --all --filter "extra-android-m2repository"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM