![](/img/trans.png)
[英]Kivy / Python-for-android : Build.py fails to build an android package apk
[英]Kivy Buildozer VM - Can't build apk - Build failed: python-for-android
我尝试在Buildozer VM上构建APK
[ERROR]: Build failed: python-for-android no longer supports running
under Python 2. Either upgrade to Python 3.4 or higher (recommended), or
revert to python-for-android 2019.07.08. Note that you *can* still target
Python 2 on Android by including python2 in your requirements.
Command failed: /usr/bin/python -m pythonforandroid.toolchain create --
dist_name=MyApp --bootstrap=sdl2 --requirements=kivy,plyer,python2 --arch
arm64-v8a --copy-libs --color=always --storage-
dir="/home/kivy/Projects/MyApp/.buildozer/android/platform/build" --ndk-
api=21
**pip freeze:**
...
buildozer==0.39
Cython==0.29.13
python-for-android==2019.7.8
**buildozer.spec:**
...
requirements = kivy,plyer,python2
数天未能成功解决此问题。 也许有人设法解决
您正在尝试使用python2运行buildozer / python-for-android,但您需要使用python3(如上面所说)。 卸载buildozer,然后使用python3进行安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.