Write down the experience of final success for Kivy on VM.
VM software used Oracle VM VirtualBox 6.1
Image was release from https://github.com/nkiiiiid/kivy-apk kivydev64-5.0
Environment set ndk path to /home/kivydev/andr/android-ndk-r19c and set sdk path to /home/kivydev/andr/android-sdk-linux
There were built-in in the image with archs = “arm64-v8a,armeabi-v7a” only of one of them should be fine.
In buildozer.spec:
requirements = python3,kivy==2.1.0
android.minapi = 21
android.ndk = 19c
android.ndk_api = 21
android.ndk_path = /home/kivydev/andr/android-ndk-r19c
android.sdk_path = /home/kivydev/andr/android-sdk-linux
android.archs = arm64-v8a, armeabi-v7a
android.allow_backup = True (只是作记录,尚未测试)
p4a.source_dir = /home/kivydev/test/python-for-android-develop (zipped file from https://github.com/kivy/python-for-android)
warn_on_root = 1(只是作记录,尚未测试)
And I wanna trying next step: to build plyer 2.1.0 and also remove another build arm64-v8a
So, let’s add below words into spec file:
requirements = python3,kivy==2.1.0,
/home/kivydev/test/plyer-master
archs = armeabi-v7a
It works fine for me.