0xAliHn
0xAliHn

Reputation: 19240

Could not find: com.google.android.gms:play-services-*:9.8.00

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

Answers (3)

doc_martin_v
doc_martin_v

Reputation: 1

They switched from '... .00' to '... .0' - just remove the last '0'

Upvotes: 0

skynet
skynet

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.

enter image description here

Upvotes: 0

Niko Adrianus Yuwono
Niko Adrianus Yuwono

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

Related Questions