MethodCountExample icon indicating copy to clipboard operation
MethodCountExample copied to clipboard

Play Services

Open FunnyDevs opened this issue 8 years ago • 2 comments

I'm trying to create jar from google play services location but i have this error message:

Could not find com.google.android.gms:play-services-location:8.3.0. Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.3.0/play-services-location-8.3.0.pom https://jcenter.bintray.com/com/google/android/gms/play-services-location/8.3.0/play-services-location-8.3.0.jar https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/8.3.0/play-services-location-8.3.0.pom https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/8.3.0/play-services-location-8.3.0.jar

What must i add to the gradle file??? Thanks

FunnyDevs avatar Jun 18 '16 21:06 FunnyDevs

I'm on the go so cannot try it out, but can you try adding mavenLocal() below jCenter() in dependencies part of main build.gradle?

Google play services doesn't come from an online Maven, but from the offline Maven repository in the Android SDK folder.

JeroenMols avatar Jun 19 '16 10:06 JeroenMols

I have tried but same result. I have found the solution, but (damn play services!) it depends on support library and android package and now it doesn't build because i have to resolve android package dependency. Howover,I have

  1. found location on sdk path of google play services.
  2. extracted "classes.jar" from google-place service location.aar and renamed "play-services-location-8.3.0.jar"
  3. Added on build.gradle this

allprojects { repositories { maven { url "C:/Android/android-sdk/extras/google/m2repository/" } maven { url "C:/Android/android-sdk/extras/android/m2repository" }

}

}

FunnyDevs avatar Jun 19 '16 10:06 FunnyDevs