Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 .

like image 549
Kiryl Belasheuski Avatar asked Apr 06 '16 22:04

Kiryl Belasheuski


People also ask

What is unaligned apk?

The unaligned apk is just an intermediate product. the unaligned apk is generated. the unaligned gets aligned and produces the aligned apk.

What is universal release apk?

app-universal-release.apk contains both of the specific instruction in app- armeabi-v7a-release.apk and app-x86-release.apk. You can use just the universal one, but you probably will not want to use it if the generated apk is too big. User tend to avoid a big application in the play store.


1 Answers

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/

like image 184
Mounir Elfassi Avatar answered Jan 21 '23 15:01

Mounir Elfassi