Unable to resolve dependency for ':[email protected]/compileClasspath
一下是编译后错误截图,在网上找了好多方法,compile改api,配置代理什么的都不行
解决办法:
项目中所有module的build.gradle中的buildTypes配置和app中需要一样如下:
app中的:
buildTypes { release { // 生产环境 ... } debug{ // 开发环境 ... } text{ // 测试环境 ... } }
其他module中的buildTypes配置:
buildTypes { release { // minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug{ } text{} }
或者
buildTypes { release { } debug{ } text{} }
空的可以不写,最后编译后成功了