python - Gradlew 在构建 Buildozer APK 时失败
问题描述
我使用 buildozer 将我的 python 脚本打包成一个 APK。在升级到 UBUNTU 20.04 之前,我从未遇到过问题。现在突然间我不断收到错误 gradlew failed 。我已经尝试了我能找到的所有可能的解决方案,但都没有奏效。
- 我已经删除了 .gradle 文件
- 我已经运行 buildozer android clean/appclean/distclean
- 我已经卸载并重新安装了 buildozer
- 我试过使用 API 27-30
到目前为止没有任何效果。
眼镜:
- Ubuntu 20.04
- Openjdk 17-ea 2021-09-14
崩溃部分的日志:
[INFO]: COMMAND:
cd /home/slartibartfast/Dropbox/Projects/Test/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a && /home/slartibartfast/Dropbox/Projects/Test/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/gradlew assembleDebug
[WARNING]: ERROR: /home/slartibartfast/Dropbox/Projects/Test/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/gradlew failed!
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No setup.py/pyproject.toml used, copying full private data into .apk.
Applying Java source code patches...
Applying patch: src/patches/SDLActivity.java.patch
Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch
解决方案
推荐阅读
- css - 导航栏粘在某些页面上,但没有其他页面
- flutter - 使用 onPress 检索数据
- java - 如何让 AtomicInteger 在 Runnable 类中工作
- c# - c#重构具有不同名称的重复属性setter和getter
- python - VS Code Python 自动完成不解析条件导入(__init__.py)
- java - 属性更改时 UI 不更新
- mysql - 从签入日期列表中获取持续时间
- java - 我不知道如何使用数组进行划分
- javascript - JavaScript:console.log 可以打印 JS 事件的完整(非截断)输出吗?
- python-3.x - 如何在 python 中为直方图构建混合 x 轴?