我使用buildozer在linux上打包python代码为apk,遇到了一下问题
[INFO]: COMMAND:
cd /home/msm/Desktop/device_dir/demo/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/com.gientech.device && /home/msm/Desktop/device_dir/demo/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/com.gientech.device/gradlew clean assembleDebug
[WARNING]: ERROR: /home/msm/Desktop/device_dir/demo/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/com.gientech.device/gradlew failed!
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
# Command failed: ['/home/msm/Desktop/device_dir/demo/venv/bin/python', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'com.gientech.device', '--name', 'DeviceService', '--version', '0.1', '--package', 'com.gientech.device', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/msm/Desktop/device_dir/demo/.buildozer/android/app', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--orientation', 'portrait', '--window', '--enable-androidx', '--copy-libs', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/home/msm/Desktop/device_dir/demo/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
我尝试过重新编译,但是还是这个问题,没有暴露出具体错误是什么,请问你们有遇到过吗,gradle我已经下载了对应的版本到.gradle目录下