BranchMetrics / phonegap-plugin

PhoneGap/Cordova plugin for Tune
https://developers.tune.com/sdk/phonegap-quick-start/
MIT License
8 stars 17 forks source link

android build fails on Cordova 5.1.1 #8

Closed bisrael closed 9 years ago

bisrael commented 9 years ago
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:/Users/user/Documents/android-sdk-macosx/extras/android/m2repository/com/google/android/gms/play-services-ads/maven-metadata.xml
         file:/Users/user/Documents/android-sdk-macosx/extras/android/m2repository/com/google/android/gms/play-services-ads/
     Required by:
         :android:unspecified

i made sure that the google play services package was installed via the android installer, but the build still fails with the same issue

john-gu commented 9 years ago

Hi Blake,

I was able to repro this when I uninstalled the 'Android Support Repository' from the Android SDK. This is a requirement for our framework reference to the GPS-Ads library, and I will be adding it as a step in the implementation guide.

john-gu commented 9 years ago

This requirement has been added to the documentation, thanks Blake!