Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle error (end of line ?) on WSL with Ubuntu 22.04 #1864

Open
pmcstjean opened this issue Oct 13, 2024 · 0 comments
Open

Gradle error (end of line ?) on WSL with Ubuntu 22.04 #1864

pmcstjean opened this issue Oct 13, 2024 · 0 comments

Comments

@pmcstjean
Copy link

Versions

  • Python: 3.10.12
  • OS: Windows WSL with Ubuntu 22.04
  • Buildozer: 1.5

Description

I am trying to build an app and receive the following gradle error

[DEBUG]:   -> running gradlew clean assembleDebug
[DEBUG]:        /usr/bin/env: ‘bash\r’: No such file or directory
Exception in thread background thread for pid 166636:

which eventually lead to the failing error

[WARNING]: ERROR: /home/pmc/KivyBuilds/Section_02/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/KivyUdemy/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: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'KivyUdemy', '--name', 'Section_02', '--version', '0.1', '--package', 'org.test.kivyudemy', '--minsdk', '21'
, '--ndk-api', '21', '--private', '/home/pmc/KivyBuilds/Section_02/.buildozer/android/app', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--orientation', 'po
rtrait', '--window', '--enable-androidx', '--copy-libs', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/home/pmc/KivyBuilds/Section_02/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']

buildozer.spec

Command:

buildozer android debug

Spec file:
a vanille file generated by buildozer init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant