0

I'm building a library for react native by using the chromecast companionlibrary.

When I add compile 'com.google.android.libraries.cast.companionlibrary:ccl:2.8.4', gradle sync fails with:

Failed to resolve: com.google.android.libraries.cast.companionlibrary:ccl:2.8.4

Weird thing is that i have other project that is not a library, and i don't receive any error messages.

Any idea?

Carlos López
  • 759
  • 4
  • 13
  • 23
  • Is jCenter in your listed repos? – Ali Naddaf Jun 13 '16 at 23:10
  • yeah @AliNaddaf, jcenter() and mavenCentral() – Carlos López Jun 13 '16 at 23:17
  • 1
    @AliNaddaf im adding the dependency in my build.gradle. as this is a library, im adding apply plugin: 'com.android.library' instruction. my other project is a normal one, and it works ok when i add the companionlibrary. just the library that has as a dependency the companion library is the one that fails. not sure if the companion l. can't be used inside other libraries. – Carlos López Jun 13 '16 at 23:22
  • @AliNaddaf my bad, you were right. i confused the buildscript repo with my project repo. is working great now :) – Carlos López Jun 13 '16 at 23:27

0 Answers0