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

解决方案

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.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐