buildozer 无法为安卓构建我的应用
我之前可以把我的应用打包成apk文件,但最近几天我无法为安卓进行打包或更新。
我的 .buildozer/android/platform/python-for-android
文件夹是空的,但我不知道这是不是问题所在?看起来任何命令都无法在安卓上运行,比如:
输入 buildozer android release 后,给我的结果是:
...
id: 3 or "android-19"
Type: Platform
Desc: Android SDK Platform 4.4.2
Revision 3
----------
id: 4 or "android-18"
Type: Platform
Desc: Android SDK Platform 4.3
Revision 2
...
----------
id: 55 or "extra-google-play_licensing"
Type: Extra
Desc: Google Play Licensing Library, revision 2
By Google Inc.
Google Play Licensing client library
Install path: extras/google/play_licensing
----------
id: 56 or "extra-google-webdriver"
Type: Extra
Desc: Google Web Driver, revision 2
By Google Inc.
WebDriver
Install path: extras/google/webdriver
# Android packages installation done.
# Check application requirements
# Run './distribute.sh -l'
# Cwd /home/t/py/other/foodapp/.buildozer/android/platform/python-for-android
/bin/sh: 1: ./distribute.sh: not found
# Command failed: ./distribute.sh -l
2 个回答
0
嘿,我有两个方法可以帮你解决这个问题:
- 直接删除你项目里的 .buildozer/ 文件夹,然后再试一次。
- 运行这个命令:buildozer clean。
1
试着运行一下
buildozer android update
我在生成apk的时候遇到了一些问题,不过在执行了清理操作后再更新一下,就成功了。