Failed to resolve: com.google.android.gms:play-services-cast:9.8.00

Alex Meuer picture Alex Meuer · Oct 24, 2016 · Viewed 9k times · Source

I'm using Android Studio and have cloned the CastVideo v2 reference app and set it up with the CastCompanionLibrary as per its instructions.

However, when I try to sync the gradle project, it says: Failed to resolve: com.google.android.gms:play-services-cast:9.8.00. I have the option to Install Repository and sync project but it does nothing.

I have tried doing Invalidate Caches / Restart..., removing and reinstalling Google Repository and Google Play services with the SDK Manager, changing dependency version and renaming to play-services-cast-framework, with no success.

My build.gradles are unchanged from those in the repos.

Does anyone know how to fix this? SO and Google searches have been unfruitful, as has reading other unresolved dependency questions.

Answer

firmanslash picture firmanslash · Oct 25, 2016

i facing the same problem, here is what i do :

  • open your app build.gradle
  • change com.google.android.gms:play-services-cast:9.8.00 to com.google.android.gms:play-services-cast:9.8.0

i notice it after updating my google repository.

hope this helps