Hello,
Let me start by saying I am normally a Windows user so I'm fairly new to Linux Ubuntu.
Here's my set-up....
Host Machine: windows 7 home p. 64 bit amd
Guest Machine: vm virtualbox, linux unbuntu 14.04 (guess auditions installed)
I have python 2.7, buildozer and dependencies all installed. My cython is 0.21 because it's all over the net that 0.21 works with buildozer. My buildozer is the latest version.
Here's the thing... When I ran buildozer -v android debug, buildozer automated the whole process, downloading the sdk and ndk. In my .spec file for requirements, I specified kivy=master. Hope using "master" didn't break anything.
In the end, I do get a debug apk in the bin folder, which is inside the project root folder. Now this is where it gets kind of strange...
When I run buildozer andorid release, the process is faster because the sdk and ndk were already downloaded but at the end, I don't get an apk file in my bin folder. In fact, I have to navigate inside the .buildozer folder all the way to another bin folder and inside it I find the release apk.
- why was the release apk not placed inside the bin folder sitting in my project root? Does the fact it wasn't mean something went wrong?
Going back to the debug apk, I can successfully use the keytool to create a .keystore file and run a successful jarsinger command. The problem is, I can't do the last step which is....
$ ~/.buildozer/android/platform/android-sdk-21/build-tools/22.0.1/zipalign -v 4 ./<ProjectDir>/bin/<ProjApkName>-<ApkVersion>-release-unsigned.apk ./<ProjectDir>/bin/<ProjApkName>.apk
For some reason, I don't have that buildozer/android/platform/android-sdk-21/build-tools/22.0.1/zipalign -v 4 path. In fact, there's no sdk or ndk inside my .buildozer folder. There's no kivy folder inside it for that matter as well.
I'm assuming it was installed because I can make the debug apk; wouldn't it not work if the sdk and ndk were not present? Not to mention it took along time to download the sdk and ndk.
I looked everywhere on my guess machine for android-sdk and ndk and there is no such folders on the virtual system!...?
I hope you can see why I'm starting to pull my hair out.
What should I do? Should I manually download android studio, tools and sdk for linux and install, and then use the zipalign from there?
You know something, I know I saw the terminal stating that it was using zipalign on my debug apk. I believe it was printed to the terminal as [zipalign].
Can someone please set me on the right path for buidling the release apk and get zipalign usable? It would be greatly appreciated. I've been at this for a week now because the original buildozer vdi is too small of a hard drive so I had to create another, larger vdi, download ubuntu and then fix all the issues with the ubuntu system.
I can't sleep knowing my sdk and ndk paths are invisible and toying with me.