Search code examples
androidpython-2.7python-3.xkivy

List of buildozer requirements to build an apk for Kivy-Python app


I would like to discuss an issue.

  • What can be put to the requirements=... in the buildozer.spec? Is it necessary to put sdl2 and python2 so that the app works fine on the phone?
  • Should it better be built using android_new or android?

I have the main.py code that depends on kivy modules and some of its widgets, and also numpy, and some built-in Python2 modules. The app works fine in Windows using Python2 (and also Python3), the app uses three .py files for storing functions and objects. When I deploy the app using buildozer to the phone, the app does not crash..but the touch for button does not work and the Image widget does not show. This is built using buildozer android debug.

Thanks.


Solution

  • As said in my last comment on your other post, the default buildozer.spec produced by "buildozer init" should be enough to compile a working apk, including image and clickable button.
    So it's not necessary to add sdl2 or python2 in your requirements.

    "android_new" or "android"? Now it's called "android" and "android_old", so you might update your buildozer installation so it may resolves your others problems, but when I was using your version, I used "android_new".