Shahbaz Sheikh Shahbaz Sheikh - 1 year ago 153
Android Question

Cannot resolve

I launched my android studio and found that the following lines in the dependencies section of build.gradle are not compiling:

compile ''
compile ''

Gradle Sync tells me that it cannot resolve the packages. I know the newest version of play-services is 7.8.0 but I'm not sure if this is related to that in any way. Any advice?

EDIT: I should mention that if I use 7.8.0, gradle does not complain, as it can find the package. However the methods I am using in my app that pertain to play services become invalid, as Google has updated how their Cloud Messaging works.

Answer Source

In the folder Android/Sdk/extras/google/m2repository/com/google/android/gms/play-services-base open the maven-metadata.xml file

and add the <version>6.5.87</version> under section <versions>. It may look like below


Do the same for Android/Sdk/extras/google/m2repository/com/google/android/gms/play-services-identity

Note: Usually Android SDK in your HOME folder.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download