我试图在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
答案 0 :(得分:1)
确保你的buildozer和python-for-android是最新的,这是在主分支中修复的。对于buildozer,您应该能够获得最新的稳定版本。对于python-for-android,删除build dir中的.buildozer目录并再次运行buildozer,它应该获取最新版本。