I am using Android Studio 1.2.2
My sdk is well updated and build-tools version installed is 22.0.1
Build > Generate Signed Apk
I only get app-release-unaligned.apk in (app/build/outputs/apk/)
I have already googled and tried:
Copy Pasting “zipalign.exe” from build-tools folder to : (i) sdk/tools/ (ii) sdk/platform-tools/
Adding “zipAlignEnabled true” under buildTypes in build.gradle
Please help solve this issue, I want to zipalign using Android Studio.
This is my first app i am trying to publish !!!
It is pretty easy to generate the signed apk file with Android Studio.
Here are the steps:
You probably are generating it, but the release
.apk file is placed in a different directory from the other
On my system, for an app called TheApp,
.apk files are usually placed in the
TheApp/build/outputs/apk/TheApp-debug.apk TheApp/build/outputs/apk/TheApp-debug-unaligned.apk TheApp/build/outputs/apk/TheApp-release-unaligned.apk
but the aligned release
.apk file is placed directly in the app’s root directory :
(This was already answered by @yushulx but I hope this shorter answer is clearer).