Buildozer Android Kivy 导入要求失败

Buildozer Android Kivy Fail on importing requirement

我曾尝试在 android 的 kivy 应用程序上导入 python 模块,无论如何,每当我在 buildozer.spec 中添加需求时,构建都会失败:

# Run 'pip install --download-cache=/home/arctia/.buildozer/cache --target=/home/arctia/Scrivania/Kivy/Programs/Domo_Skills/.buildozer/applibs openpyxl'
no such option: --download-cache

# Command failed: pip install --download-cache=/home/arctia/.buildozer/cache --target=/home/arctia/Scrivania/Kivy/Programs/Domo_Skills/.buildozer/applibs openpyxl
# Buildozer failed to execute the last command

确保您的 buildozer 和 python-for-android 是最新的,这在 master 分支中已修复。对于 buildozer,您应该能够获得最新的稳定版本。对于 python-for-android,删除构建目录中的 .buildozer 目录并再次 运行 buildozer,它应该获取最新版本。