Thanks for using Kivy/Buildozer VM. It has been installed only for
packaging Kivy application for Android.
Credentials: username: kivy
/ password: kivy
Buildozer is ready to be used. You'll need internet connection for
download the Android SDK/NDK (automatically done), and during the first
compilation.
It is preferrable to add a share a folder
between your host and the VM, then build from there.
By the time we shipped the VM and you using it, you may need to
update buildozer.
Don't try to use latest Android SDK or NDK. The defaults from buildozer works: Android SDK 20, Android NDK 9c. Recent Android SDK doesn't work the same as before (no more android command), and python-for-android project have issues with it. As for NDK, you can use 13b, it works too.
buildozer init
buildozer.spec
:
[buildozer] # change the name of your app package.name = myapp # change the domain of your package package.domain = com.mydomain # specify hostpython2 manually. If you want to use python 3, check buildozer # README about it, the VM is not preinstalled for that. requirements = hostpython2,kivy [buildozer] # update the build directory (issue with virtualbox shared folder and symlink) build_dir = /build/myapp
buildozer android debug
buildozer android debug deploy run logcat
Virtualbox allows you to share a folder between your computer and the VM. To do, just:
/media/sf_directoryname
/build
directory where you can put your
build in it. Edit your buildozer.ini
:
[buildozer] build_dir = /build/buildozer-myapp
The buildozer version you have may be outdated, as well as the dependencies. The best is to regulary update buildozer:
sudo pip install -U buildozer
The simplest way to update kivy and other modules is to clean all the buildozer cache, and rebuild everything.
rm -rf ~/.buildozer/android/packages