JeroenMols / MethodCountExample

Sample project to shrink huge libraries and reduce their method count.
Apache License 2.0
33 stars 6 forks source link

Play Services #2

Open FunnyDevs opened 8 years ago

FunnyDevs commented 8 years ago

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

JeroenMols commented 8 years ago

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.

FunnyDevs commented 8 years ago

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" }

}

}