我正在尝试使用kivy制作android应用。 我下载了kivy buildozer VM安装程序,并从here开始执行步骤 但我收到此错误:
# Cwd /home/kivy/Desktop/ekek/.buildozer/android/platform/python-for-android
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/kivy/Desktop/ekek/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 96, in <module>
from pythonforandroid.distribution import Distribution, pretty_log_dists
File "pythonforandroid/distribution.py", line 48
*,
^
SyntaxError: invalid syntax
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/kivy/Desktop/ekek/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
#
我尝试将buidozer规格文件中的python3更改为python 2,但是我没有进行任何更改。 我仍然有此错误。