python编译安卓apk-如何将Kivy和Python文件编译为APK

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值