Cordova:无法编译代码 - 找不到任何匹配 google 播放服务的版本
Cordova: Cannot compile code - couldn't find any version that matches google play services
我正在使用最新版本 Visual Studio 2017 和 Cordova 6.3.1 来编译使用 google 播放服务的 cordova 项目。
前几天编译的还不错,现在报错:
1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1>MSBUILD : cordova-build error : * What went wrong:
1>MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1>MSBUILD : cordova-build error : > Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
1>MSBUILD : cordova-build error : > Could not find any version that matches com.google.android.gms:play-services-maps:+.
1>MSBUILD : cordova-build error : Searched in the following locations:
1>MSBUILD : cordova-build error : https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : file:/C:/ProgramData/Microsoft/AndroidSDK/25/extras/android/m2repository/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : file:/C:/ProgramData/Microsoft/AndroidSDK/25/extras/android/m2repository/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : Required by:
1>MSBUILD : cordova-build error : :android:unspecified
不同 Google Play 服务相同。
我已经尝试从 Android SDK 管理器重新安装 Android 支持存储库、Google 播放服务和 Google 存储库,但没有成功。
在这种情况下有人可以帮助我吗?提前致谢。
经过各种尝试我发现,由于自动超链接,https 丢失了。正如@Gabriele Mariotti 所说,正确答案是 - maven { url "https://maven.google.com" } - url 以 https.
开头
我正在使用最新版本 Visual Studio 2017 和 Cordova 6.3.1 来编译使用 google 播放服务的 cordova 项目。 前几天编译的还不错,现在报错:
1>MSBUILD : cordova-build error : FAILURE: Build failed with an exception.
1>MSBUILD : cordova-build error : * What went wrong:
1>MSBUILD : cordova-build error : A problem occurred configuring root project 'android'.
1>MSBUILD : cordova-build error : > Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
1>MSBUILD : cordova-build error : > Could not find any version that matches com.google.android.gms:play-services-maps:+.
1>MSBUILD : cordova-build error : Searched in the following locations:
1>MSBUILD : cordova-build error : https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : file:/C:/ProgramData/Microsoft/AndroidSDK/25/extras/android/m2repository/com/google/android/gms/play-services-maps/maven-metadata.xml
1>MSBUILD : cordova-build error : file:/C:/ProgramData/Microsoft/AndroidSDK/25/extras/android/m2repository/com/google/android/gms/play-services-maps/
1>MSBUILD : cordova-build error : Required by:
1>MSBUILD : cordova-build error : :android:unspecified
不同 Google Play 服务相同。
我已经尝试从 Android SDK 管理器重新安装 Android 支持存储库、Google 播放服务和 Google 存储库,但没有成功。
在这种情况下有人可以帮助我吗?提前致谢。
经过各种尝试我发现,由于自动超链接,https 丢失了。正如@Gabriele Mariotti 所说,正确答案是 - maven { url "https://maven.google.com" } - url 以 https.
开头