首页 > 解决方案 > Gradlew 在构建 Buildozer APK 时失败

问题描述

我使用 buildozer 将我的 python 脚本打包成一个 APK。在升级到 UBUNTU 20.04 之前,我从未遇到过问题。现在突然间我不断收到错误 gradlew failed 。我已经尝试了我能找到的所有可能的解决方案,但都没有奏效。

到目前为止没有任何效果。

眼镜:

崩溃部分的日志:

[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

标签: pythonjavaandroidgradlebuildozer

解决方案


推荐阅读