目前,我的项目使用来自源的Cast Companion库。以下是我的build.gradle文件中的依赖项:
dependencies {
compile files('../../external/commonlibs/json/json-io-2.6.0.jar')
compile fileTree(dir: '../../external/commonlibs/annotations', include: '*.jar')
compile fileTree(include: '*.jar', dir: 'src/main/libs')
compile project(':common')
compile project(':common_ui')
compile project(':android-google-play-services_lib-v22')
compile project(':android-CastCompanionLibrary-v22')
compile project(':adara-middleware')
compile project(':android-support')
compile project(':android-mediarouter')
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
testCompile fileTree(dir: '../../external/testlibs', include: '*.jar')
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2'
androidTestCompile 'com.android.support.test:rules:0.3'
}
我想删除行"编译项目(':android-CastCompanionLibrary-v22')"并将其替换为:
compile 'com.google.android.libraries.cast.companionlibrary:ccl:2.9.1'
当我这样做时,我收到以下错误:
Error:A problem occurred configuring root project 'Fling'.
> Could not resolve all dependencies for configuration ':_myCatapulTVeDebugApkCopy'.
> Could not find com.google.android.libraries.cast.companionlibrary:ccl:2.9.1.
Required by:
:Fling:unspecified
我按照此链接中的说明操作:https://github.com/googlecast/CastCompanionLibrary-android