7

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.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Alex Meuer
  • 1,621
  • 3
  • 26
  • 37

2 Answers2

11

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

firmanslash
  • 121
  • 6
9

Currently the dependency doesn't exist:

Use

com.google.android.gms:play-services-cast:9.6.1

instead of

com.google.android.gms:play-services-cast:9.8.00

EDIT:

Today (25/10/2016) is available in SDK Manager.
Just update the SDK Manager and use:

com.google.android.gms:play-services-cast:9.8.0

Official link: https://developers.google.com/android/guides/setup

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
  • Makes no sense, according to this: https://developers.google.com/android/guides/releases#october_2016_-_v98 – IgorGanapolsky Oct 24 '16 at 22:04
  • 1
    @IgorGanapolsky Now it is available in SDK Manager: https://developers.google.com/android/guides/setup. – Gabriele Mariotti Oct 25 '16 at 06:37
  • Thank you, this morning's update to Google Repository has added v9.8.0. The cast reference app developers must have had access to a more bleeding edge update channel. – Alex Meuer Oct 25 '16 at 08:38