【Android App developed by Kivy】

Write down the experience of final success for Kivy on VM.

VM software used Oracle VM VirtualBox 6.1

Image was release from https://github.com/nkiiiiid/kivy-apk kivydev64-5.0

Environment set ndk path to /home/kivydev/andr/android-ndk-r19c and set sdk path to /home/kivydev/andr/android-sdk-linux

There were built-in in the image with archs = “arm64-v8a,armeabi-v7a” only of one of them should be fine.

In buildozer.spec:

requirements = python3,kivy==2.1.0

android.minapi = 21

android.ndk = 19c

android.ndk_api = 21

android.ndk_path = /home/kivydev/andr/android-ndk-r19c

android.sdk_path = /home/kivydev/andr/android-sdk-linux

android.archs = arm64-v8a, armeabi-v7a

android.allow_backup = True (只是作记录,尚未测试)

p4a.source_dir = /home/kivydev/test/python-for-android-develop (zipped file from https://github.com/kivy/python-for-android)

warn_on_root = 1(只是作记录,尚未测试)

And I wanna trying next step: to build plyer 2.1.0 and also remove another build arm64-v8a

So, let’s add below words into spec file:

requirements = python3,kivy==2.1.0,

  /home/kivydev/test/plyer-master

archs = armeabi-v7a

It works fine for me.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值