android studio 在编译导入的带有依赖库的项目时报以下错误:
ERROR: Unable to resolve dependency for ':otto-sample@debug/compileClasspath': Could not resolve project :otto.
Show Details
Affected Modules: otto-sample
ERROR: Unable to resolve dependency for ':otto-sample@debugAndroidTest/compileClasspath': Could not resolve project :otto.
Show Details
Affected Modules: otto-sample
当时我的解决方法是这样的:
在依赖库的 build.gradle 第一行加上 : apply plugin: ‘com.android.library’ 问题解决了!哈哈哈, 在网上找了很多方法没有解决, 自己动手丰衣足食了。
本文主要讲述了Android Studio在编译导入的带有依赖库的项目时出现错误的问题。作者尝试多种网上方法无果后,通过在依赖库的build.gradle第一行添加‘apply plugin: ‘com.android.library’解决了该问题。
2998

被折叠的 条评论
为什么被折叠?



