Reputation: 421
I didn't find out what's causing the problem below. Could you help me, please?
Error:Failed to resolve: com.google.android.gms:play-services-measurement:9.0.2 Install Repository and sync project
Open File
Show in Project Structure dialog
Upvotes: 22
Views: 13141
Reputation: 11
I resolved this problem by uninstall Google Repository from SDK Manager then install it again. Hope this helps
Upvotes: 1
Reputation: 61
If anyone has this problem and have updated SDK and still isnt working my fix was the google play services version in my build code read 'com.google.android.gms:play-services:9.8.00' and I changed it to 'com.google.android.gms:play-services:9.8.0'
Upvotes: 6
Reputation: 1095
You have to update Application level build.gradle to classpath 'com.google.gms:google-services:3.0.0'
from 2.x.x. Hope this will help
Upvotes: 50
Reputation: 271
Update your android sdk manager - Google repository version to 28 & Google play services to 30. It will work fine.
Upvotes: 12