1 背景 整合同事写的代码时,由于修改了package名称,需要修改大量文件,修改完成后,build报错: AAPT2 error: check logs for details 2 解决 在terminal中输入: gradlew compileDebug --stacktrace 报错信息如下: FAILURE: Build failed with an exception. * What went wrong: Task 'compileDebug' is ambiguous in root project 'XXXXX'. Candidates are: 'compileDe