发生了配置根项目'android'

时间:2015-10-16 07:15:23

标签: android cordova

我使用cordova build时出错了 - 释放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中更新了所有已安装的文件。

1 个答案:

答案 0 :(得分:0)

试试这个

android update sdk --no-ui --all --filter "extra-android-m2repository"
相关问题