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

Closed
pmcstjean opened this issue Oct 13, 2024 · 1 comment
Closed

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

pmcstjean opened this issue Oct 13, 2024 · 1 comment

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

@kuzeyron
Copy link
Contributor

kuzeyron commented Dec 6, 2024

Did your text editor change the line endings? A user on Reddit mentioned about this. Make sure it's the right one on your end and then get back to us with the results.

@kuzeyron kuzeyron closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants