finished with non-zero exit value 2 错误分析
主要是两种情况下出现
a,依赖包重复
解决方法:删除重复包
b,方法数超过65K
解决方法:使用multidex打包,在build.gradle里添加
defaultConfig {
multiDexEnabled true
}
finished with non-zero exit value 2 错误分析
主要是两种情况下出现
a,依赖包重复
解决方法:删除重复包
b,方法数超过65K
解决方法:使用multidex打包,在build.gradle里添加
defaultConfig {
multiDexEnabled true
}