我尝试在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几天来一直试图解决这个问题,但都没有成功。也许有人设法解决了
发布于 2019-09-12 02:37:09
您正在尝试使用python2运行buildozer/python-for-android,但是您需要使用python3 (正如它所说的那样)。卸载buildozer,并使用python3安装它。
https://stackoverflow.com/questions/57884455
复制相似问题