APK files generated using Android Studio in Ubuntu System are always unaligned apk,
If you set the following settings in Bulid.gradle, the same is the unaligned apk.
minifyenabled true
zipalignenabled true
Description: If the zipalign command does not exist in the Ubuntu system, I have installed it using the following command:
sudo apt-get install zipalign
There's no way. You can only create a batch that contains the following commands for manual zipalign processing:
CD ~/androidstudioprojects/helloandroid/app/build/outputs/apk
Zipalign-v 4 app-release-unaligned.apk helloandroid.apk
The feeling should be that the aligned apk can be automatically generated in Android studio and may not have found the correct method, or where it was configured incorrectly.
If any of you know how to set up, you can reply to the point, thank you.
The following record detects if an APK has been zipalign processed:
Zipalign-c-V 4 application.apk
Ubuntu under Android Studio generated by unaligned apk zipalign processing