Android: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath':
程序员文章站
2022-10-30 10:11:46
我按照ExoPlayer的github指引添加 发现根本run不起来,并报错如题 后来在*找到了解决方案,来源为:https://*.com/questions/46949622/android studio 3 0 unable to resolve ......
我按照exoplayer的github指引添加
implementation 'com.google.android.exoplayer:exoplayer:2.x.x'
发现根本run不起来,并报错如题
后来在*找到了解决方案,来源为:
出现问题的原因在于app含有buildtype但是library的依赖没有,所以我们需要添加一个matching configuration fallbacks
buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android-optimize.txt'), 'proguard-rules.pro' } dexoptions { // release & debug is in project animators matchingfallbacks = ['release', 'debug'] } debug { } }
在dexoptions下增加callback即可
推荐阅读
-
android添加依赖出现Failed to resolve:"你添加的依赖名" 或者出现 debug@Compileclasspath问题解决办法
-
Android studio 3.4 新建项目报错Error:unable to resolve dependency for app@。。。解决办法
-
Android: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath':
-
RN:Unable to resolve module `react/lib/ReactPropTypes(Image.android.js)
-
Android Studio报错Unable to resolve dependency for ':app@release/compileClassp
-
最有效的解决方案:Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download xx.jar
-
android添加依赖出现Failed to resolve:"你添加的依赖名" 或者出现 debug@Compileclasspath问题解决办法
-
Android studio 3.4 新建项目报错Error:unable to resolve dependency for app@。。。解决办法
-
Android: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath':
-
Connection refused (Connection refused)和Unable to resolve dependency