Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Build ERROR : Could not find any version that matches com.google.android.gms
-
Im using Monaca onsenui and angularJS v1.x.x
Project Config is :
CLI Version: 6.5.0
Android Platform: 6.2.3Im getting strange build error as below :
Fetch queue Info... Start building 5b3e11a9e78885d5064effd3 Setup working directories... Download project archive... Extract project archive... Fetch project info... Search builder by config Webview:null Arch:null cordova version: 6.5.0 - preBuild - - Cordova create - $ /data/build-server/cordova/6.5.0/bin/cordova create /tmp/monaca/5b3e11a9e78885d5064effd3/project Creating a new cordova project. - Copy .monaca-res directory - - Copy config.xml - - Cordova platform add - $ /data/build-server/cordova/6.5.0/bin/cordova platform add /data/build-server/cordova/platforms/android/6.2.3 --nofetch Adding android project... Creating Cordova project for the Android platform: Path: platforms/android Package: com.package.name Name: ProjectName Activity: MainActivity Android target: android-25 Subproject Path: CordovaLib Android project created with cordova-android@6.2.3 Discovered plugin "phonegap-plugin-push" in config.xml. Adding it to the project Fetching plugin "phonegap-plugin-push@1.11.1" via npm Installing "phonegap-plugin-push" for android Subproject Path: CordovaLib - Copy external plugin setting files - - Copy files for signing - - Copy www files - - Cordova plugin add - $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.Monaca@3.1.0 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add mobi.monaca.plugins.datepicker@1.0.1 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-custom-config@2.0.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-whitelist@1.3.1 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-splashscreen@4.0.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-geolocation@2.4.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-camera@2.4.1 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-globalization@1.0.7 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-inappbrowser@1.7.1 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-dialogs@1.3.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-network-information@1.3.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device@1.1.6 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-motion@1.2.5 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-device-orientation@1.0.7 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-statusbar@2.2.3 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add cordova-plugin-contacts@2.3.1 $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cl.rmd.cordova.dialoggps $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/com.teamnemitoff.phonedialer $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=**private** $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/cordova-plugin-sim $ /data/build-server/cordova/6.5.0/bin/cordova plugin add /tmp/monaca/5b3e11a9e78885d5064effd3/output/plugins/phonegap-plugin-push --variable SENDER_ID=**private** - Cordova prepare - $ /data/build-server/cordova/6.5.0/bin/cordova prepare android cordova-custom-config: Skipping auto-restore of config file backup(s) - Cordova compile - $ /data/build-server/cordova/6.5.0/bin/cordova compile --release --device ANDROID_HOME=/data/android-sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home :wrapper BUILD SUCCESSFUL Total time: 0.829 secs Subproject Path: CordovaLib The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. at build_2r0ehsbpso67cmhfa87fmt3vu.run(/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/build.gradle:138) The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. Incremental java compilation is an incubating feature. The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. BUILD FAILED Total time: 7.146 secs - postBuild - Remove working directories... Build Error: Error: Sandbox Exec Error: [ FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not resolve all dependencies for configuration ':_debugApkCopy'. > Could not find any version that matches com.google.android.gms:play-services-gcm:15+. Versions that do not match: 11.0.4 11.0.2 11.0.1 11.0.0 10.2.6 + 18 more Searched in the following locations: file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/ file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/ file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/ Required by: project : * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: /private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/gradlew: 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 resolve all dependencies for configuration ':_debugApkCopy'. > Could not find any version that matches com.google.android.gms:play-services-gcm:15+. Versions that do not match: 11.0.4 11.0.2 11.0.1 11.0.0 10.2.6 + 18 more Searched in the following locations: file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/ file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/ file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/maven-metadata.xml file:/private/tmp/monaca/5b3e11a9e78885d5064effd3/project/platforms/android/sdk-manager/com/google/android/gms/play-services-gcm/ Required by: project : * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ]
From analysing this issue in google found a solution : https://stackoverflow.com/questions/34812616/could-not-find-any-version-that-matches-com-google-android-gmsplay-services-plu
This solution is related to the monaca build engine in your server I hope.
Kindly help to solve this issue. It would be very grateful.
-
@raj-wilson Based on the build error
Could not find any version that matches com.google.android.gms:play-services-gcm:15+
. This means that one of your plugin requires Play Services library version15+
. For this reason, you can use cordova-android-play-services-gradle-release plugin and setPLAY_SERVICES_VERSION=15.+
variable to this plugin. Then, your build should be fine.