I am not able to optimise my apk that I created using Buildozer. when is use the optimize command:
$ ~/.buildozer/android/platform/android-sdk-20/build-tools/23.0.1/zipalign -v 4 ./bin/Your-App-0.1-release.apk ./bin/Your-App-0.1-release-optimized.apk
its saying bash :
no such file or directory.
plus I don't know which sdk I'm using. my project location is Desktop/mobileapp/bin/TibetanAstroCalendar-0.1-Release-unsigned.apk (I created the release version
and one more question : - from which directory do I need to run the optimize command
I suggest installing the zipalign
package. In Ubuntu, that would simply be:
sudo apt-get install zipalign
Then do:
cd home/kivy/desktop/mobileapp/bin
zipalign -v -p 4 TibetanAstroCalendar-1.0-release-unsigned.apk aligned.apk
That is based on your provided information, but perhaps that directory is /home/kivy/desktop/mobileapp/bin? Is a leading /
missing? You can replace the name aligned.apk
with any file name you like.
If you cannot or do not want to install the zipalign
package, look for any zipalign
under .buildozer
in your home directory, then replace zipalign
with the path to the zipalign
you found.
Some versions of zipalign
do not recognize the -p
option. If you get an unrecognized option
error, just leave off the -p
.