Failed to resolve: com.google.android.gms:play-services-measurement:9.0.2

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 projectOpen FileShow in Project Structure dialog

Answers


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


Update your android sdk manager - Google repository version to 28 & Google play services to 30. It will work fine.


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'


I resolved this problem by uninstall Google Repository from SDK Manager then install it again. Hope this helps


Need Your Help

Cannot instantiate class android.support.v7.widget.SearchView

android android-menu searchview android-appcompat

Please somebody help me! I trying add appcompat search view to my project. Unsuccessfully. When I change android.support.v7.widget.SearchView to SearchView (API > 10) everything's fine.