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

I always get "app-release-unaligned.apk". I can not get "app-release.apk". But before I updated the Android SDK, I can get "app-release.apk" and "app-release-unaligned.apk" after clicking "Build-> Generate Signed Apk ...

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

I found a similar problem on Android Developer Tools Google Plus

UPD1 I used cmd to align apk. Because I could not publish my application on Google Play. zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk .

+5
source share
1 answer

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

Sometimes in the Android studio another directory is displayed in which the unsigned file is located.

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

+12
source

Source: https://habr.com/ru/post/1246594/


All Articles