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’ 问题解决了!哈哈哈, 在网上找了很多方法没有解决, 自己动手丰衣足食了。