Reputation: 19240
I am using com.google.android.gms:play-services-*:9.8.00 for GCM and ads service in gradle. Previously it works fine, but currently its not working.
It's showing below error now when build the apk:
Could not find: com.google.android.gms:play-services-*:9.8.00
Upvotes: 1
Views: 4846
Reputation: 1
They switched from '... .00' to '... .0' - just remove the last '0'
Upvotes: 0
Reputation: 726
Make sure the Google Repository and its related repostories has been updated to the latest version. Check by going to the SDK Manager -> Extras Section.
Upvotes: 0
Reputation: 11112
You need to specify the services name, in your case it should be this two line in your build.gradle file
compile 'com.google.android.gms:play-services-gcm:9.8.0'
compile 'com.google.android.gms:play-services-ads:9.8.0'
And if you want to include all play-services (not recommended!)
compile 'com.google.android.gms:play-services:9.8.0'
Upvotes: 3