错误提示:
Unable to open ‘xxx.apk’ as zip archive
Error:Execution failed for task ‘:app:zipalignDebug’
>Process ‘command ’ \xxx\sdk\build-tools\23.0.2\zipalign.exe” finished with non-zero exit value 1
升级AS到2.1版本后,运行项目时出现过一个需要disabled Instant Run 的错误,我解决这个问题后再运行时我的项目文件夹(Explorer)是打开状态,于是损坏了apk,爆出了上面的错误。
解决办法:
删掉损坏的app-debug.apk,重新运行即可。