关于Android studio项目sdk1\build-tools\23.0.1\zipalign.exe'' finished with non-zero exit value 1问题

今天项目没动什么地方就出现了

Error:Execution failed for task ':app:zipalignDebug'. > Process 'command 'D:\sdk1\build-tools\23.0.1\zipalign.exe'' finished with non-zero exit value 1错误,

而且clean 也提示

Error:Execution failed for task ':app:clean'. > Unable to delete file:XXX错误

更新了sdk,换版本什么的也没用,

最后才发现   clean错误是因为XXX文件被占用,才报错(之前因为用到了debug.apk,所以这个文件被占用)

value 1这个错误可以有很多原因导致,如果和clean错误同时出现,那很可能是XXX文件被占用,

如果还不行就强杀调java进程重启as

你可能感兴趣的:(关于Android studio项目sdk1\build-tools\23.0.1\zipalign.exe'' finished with non-zero exit value 1问题)