How to compile kivy and python files to apk

﹥>﹥吖頭↗ 提交于 2019-12-25 09:23:29

问题


i want to convert my python and kivy files into signed and unsigned apk. i work on windows but for compiling using python for android in ubuntu in vm ware. After installing all necessary modules like kivy, python for android and android studio.

when i am compiling it's showing error that sdk not found. is there any option for generating apk in windows or ubuntu or linux. i also heard about buildozer and it also works on windows. please suggest me something on it i'm new to kivy. thanks 1


回答1:


I suggest using buildozer instead of p4a - the buildozer uses it internally. It can also automatically download specified android sdk for you.

Install it using pip: sudo pip install buildozer

Once you have it installed, go to your project directory and type:

buildozer init
# edit the buildozer.spec, then
buildozer android_new debug deploy run

Find more info on the github.



来源:https://stackoverflow.com/questions/38674286/how-to-compile-kivy-and-python-files-to-apk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!