Android studio 错误: 程序包 不存在

问题:
这个问题比较有针对性,可能你也报的是这个错误,但是我的解决方法并不适合你

主模块引用了module A作为lib,但是在module A中有的类不能混淆,比如javaBean类等

解决:

先确定已经设置了module的依赖关系,请看这里
主module下的build.gradle 里有这样类似的代码
dependencies {
compile project(‘:module A’)
}

在作为lib的module的build.gradle中将release部分注释:
buildTypes {
release {
// minifyEnabled true
//proguardFiles ‘proguard-project.txt’
}
}

你可能感兴趣的:(android)