关闭Instant Run 2.或者下载LockHunter,在app的build.gradle中加上如下代码,确保清空build文件夹内容 task clean(type: Exec) { ext.lockhunter = '\"D:\\Program Files\\LockHunter\\LockHunter.exe\"' def buildDir = file(new File("build")) commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir } 123456 123456