Kivy Buildozer VM-Can';t build apk-构建失败:android版python

Kivy Buildozer VM-Can';t build apk-构建失败:android版python,python,kivy,buildozer,Python,Kivy,Buildozer,我尝试在BuildozerVM上构建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

我尝试在BuildozerVM上构建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/pythonforandroid的问题,但是你需要使用python3(就像上面说的那样)。卸载buildozer,并将其与python3一起安装。

请注意,通过将python2包含在您的需求中,您仍然可以在Android上以python2为目标。这也是正确的,但与此无关。