Buildozer 在部署期间显示错误

Buildozer displays error during deploying

我正在尝试使用 Buildozer 将我的 Kivy 应用程序部署到 Android,但它抛出了一个错误。

Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python3.5/dist-packages/buildozer/__init__.py", line 1041, in run_command
    targets = [x[0] for x in self.targets()]
  File "/usr/local/lib/python3.5/dist-packages/buildozer/__init__.py", line 1041, in <listcomp>
    targets = [x[0] for x in self.targets()]
  File "/usr/local/lib/python3.5/dist-packages/buildozer/__init__.py", line 933, in targets
    fromlist=['buildozer'])
  File "/usr/local/lib/python3.5/dist-packages/buildozer/targets/android.py", line 165
    sdk_root = f"--sdk_root={android_sdk_dir}"
                                             ^
SyntaxError: invalid syntax

f-strings 直到 Python 3.6 才被引入。该软件包不应该允许自己安装在您的 3.5 版本中。如果您愿意编辑该文件并将行更改为

,则可以解决此问题
sdk_root = "--sdk_root=" + android_sdk_dir