Search code examples
androidpython-3.xkivykivymdbuildozer

Kivy App working on pc but not in android


I have made an apk by converting .py kivy with the help of buidozer in google colab. The earlier versions were working but now latest version is not working.

May be there is a problem in my .spec file so I am attaching it ...

At first I think my assest(images) are causing this problem but after removing them too it's not working.

I have done some research and got this buildozer -v android debug deploy run logcat but I don't know how to execute and use this command....

.spec file link : https://github.com/AyushRaj0305/APP/blob/main/.spec

All I want is that my apk should work in android

Thanks for Help


Solution

  • I have same issue in past and I solve by adding requirements in .spec

    This requirements work for me:

    requirements = hostpython3==3.7.8,python3==3.7.8,kivy==1.11.1, certifi,chardet, lxml, docutils, future, idna, Kivy-Garden, Pygments, requests, six, soupsieve, urllib3, deep-translator, arabic-reshaper, python-bidi, openssl, pyopenssl, numpy, pytz, python-dateutil, pandas, setuptools, zope.interface, datetime
    

    you have to write all modules and parent module in requirements which your app is using.

    To know module which you app is using has two method:

    1. run command pip freeze in current app folder in powershell
    2. install all the module as below photo which help to install your application module

    [1]: https://i.sstatic.net/y8bCE.png

    I have debugged your code and found missing PIL