How to include a plugin that uses google play services?



  • I am trying to include a plugin that uses google play services, builds fine on my computer without monaca but when i include it in the Monaca cloud builder, it fails and says it cannot find google play services.

    Anyone know how to get this to work??



  • Are you using a paid developers account and have you included the plugin from the configurations tab?



  • Yes I have the Monthly Platinum Plan, and when I include any plugin that uses play services the build fails and the output says that it cannot find play services.



  • here is what I see if I include ANY plugin that uses play services

    BUILD FAILED
    
    Total time: 10.401 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 ':_debugCompile'.
       > Could not find com.google.android.gms:play-services-ads:10.0.1.
         Searched in the following locations:
             https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.pom
             https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.jar
             https://jcenter.bintray.com/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.pom
             https://jcenter.bintray.com/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.jar
             file:/private/tmp/monaca/5911b09cff2af2d6558e45d3/project/platforms/android/src/android/play-services-ads-10.0.1.jar
             file:/private/tmp/monaca/5911b09cff2af2d6558e45d3/project/platforms/android/src/android/play-services-ads.jar
             file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.pom
             file:/data/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.jar
             file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.pom
             file:/data/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-ads/10.0.1/play-services-ads-10.0.1.jar
         Required by:
             :android:unspecified
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: Error code 1 for command: /private/tmp/monaca/5911b09cff2af2d6558e45d3/project/platforms/android/gradlew with args: cdvBuildDebug,-b,/private/tmp/monaca/5911b09cff2af2d6558e45d3/project/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
     ]
    


  • I have been digging into this, found the actual issue, the plugin that we are using requires play services 10.0.1 and that does not seem to be on the cloud server, 10.0.0 is. How do I go about getting the patch release on the cloud builder?


Log in to reply