android studio 构建错误 debug-unaligned.apk 路径未找到

android studio 构建错误 debug-unaligned.apk 路径未找到

问题描述:

昨晚我将我的 android studio 更新到 0.5.3,因为每当我尝试生成签名的 apk 时都会收到此错误消息.当我只是在 android studio 上运行项目时不会发生这种情况.

Last night I updated my android studio to 0.5.3 and since than i am getting this error message whenever I am trying to generate a signed-apk. It does not occur when I am just running the project over android studio.

我尝试过重建、清理项目、重启android-studio、重新导入项目,都没有成功.我现在很绝望

I tried rebuilding, cleaning project, restarting android-studio, reimporting the project, no success. I am pretty desperate right now

我发现实际上未生成调试未对齐...但为什么呢?如果我只是想签署应用程序,为什么我需要生成它

i found out that actually debug-unaligned is not generated... But why is that? And why do i need to generate it if i am just trying to sign the app

在 0.5.3 中,我们试图通过不让它对 APK 进行完整构建来加快构建过程,除非需要,但我们错过了在某些情况下需要.

In 0.5.3, we tried to speed up the build process by not having it do a full build to an APK except when it needs to, but we missed some cases where it needs to.

您可以在 https://code.google 中关注进度.com/p/android/issues/detail?id=67948 但与此同时,您可以通过从命令行或 Gradle 任务视图运行 assembleRelease 任务来解决它:

You can follow progress in https://code.google.com/p/android/issues/detail?id=67948 but in the meantime you can work around it by running the assembleRelease task, either from the command line or from the Gradle tasks view: