一般是R文件的问题在gradle内添加如下内容;
android{
……………………
………………
………………
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
}