I get only app-release-unaligned.apk when I press generate signed apk

旧城冷巷雨未停 提交于 2020-01-02 04:58:47

问题


I always get "app-release-unaligned.apk". I can't get "app-release.apk". But before I've updated Android SDK, I can get both "app-release.apk" and "app-release-unaligned.apk" after pressing Build->Generate Signed Apk...

System Mac OS. Android Studio 1.5.1. Android SDK Tools 25.1.1. Android SDK Platform-tools 23.1. Android SDK Build-tools 23.0.3.

I found the similar problem on Android Developer Tools Google Plus

UPD1 I've used cmd to align my apk. Because I could not publish my application to google play. zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk .


回答1:


app-release.apk file is in the application folder.

Sometimes Android studio shows another directory where the unaligned file is.

in my case The app-release.apk was in app/ folder not in outputs/apk/



来源:https://stackoverflow.com/questions/36463690/i-get-only-app-release-unaligned-apk-when-i-press-generate-signed-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!