You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Task :mergeDebugJavaResource FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeDebugJavaResource'.
> Could not resolve all files for configuration ':debugRuntimeClasspath'.
> Failed to transform bundletool-1.14.0.jar (com.android.tools.build:bundletool:1.14.0) to match attributes {artifactType=android-java-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/averagenetworkscienceenjoyer/.gradle/caches/modules-2/files-2.1/com.android.tools.build/bundletool/1.14.0/2fcb426b5e62cc6e879369fdbbe915bb0a43c3e1/bundletool-1.14.0.jar.
> Failed to transform '/home/averagenetworkscienceenjoyer/.gradle/caches/modules-2/files-2.1/com.android.tools.build/bundletool/1.14.0/2fcb426b5e62cc6e879369fdbbe915bb0a43c3e1/bundletool-1.14.0.jar' using Jetifier. Reason: AmbiguousStringJetifierException, message: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)
This is a known exception, and Jetifier won't be able to jetify this library.
Suggestions:
- If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.ignorelist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.
- If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.
> Failed to transform common-31.1.0.jar (com.android.tools:common:31.1.0) to match attributes {artifactType=android-java-res, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/averagenetworkscienceenjoyer/.gradle/caches/modules-2/files-2.1/com.android.tools/common/31.1.0/91b8f318da2aeabbbf7042d5a965d5c0292fca80/common-31.1.0.jar.
> Failed to transform '/home/averagenetworkscienceenjoyer/.gradle/caches/modules-2/files-2.1/com.android.tools/common/31.1.0/91b8f318da2aeabbbf7042d5a965d5c0292fca80/common-31.1.0.jar' using Jetifier. Reason: AmbiguousStringJetifierException, message: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)
This is a known exception, and Jetifier won't be able to jetify this library.
Suggestions:
- If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.ignorelist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.
- If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 31s
15 actionable tasks: 14 executed, 1 up-to-date
STDERR:
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
[INFO]: STDOUT (last 20 lines of 203):
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 31s
15 actionable tasks: 14 executed, 1 up-to-date
[INFO]: STDERR:
[INFO]: ENV:
export SHELL='/bin/bash'
export PYENV_SHELL='bash'
export WSL_DISTRO_NAME='Ubuntu-22.04'
export JAVA_HOME='/usr/lib/jvm/java-11-openjdk-amd64'
export NAME='LAPTOP-FMGMUHFC'
export PWD='/home/averagenetworkscienceenjoyer/pythonprojectretry'
export LOGNAME='averagenetworkscienceenjoyer'
export MOTD_SHOWN='update-motd'
export HOME='/home/averagenetworkscienceenjoyer'
export LANG='C.UTF-8'
export WSL_INTEROP='/run/WSL/8_interop'
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
export VIRTUAL_ENV='/home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv'
export LESSCLOSE='/usr/bin/lesspipe %s %s'
export ANDROID_HOME='/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-sdk'
export TERM='xterm-256color'
export LESSOPEN='| /usr/bin/lesspipe %s'
export USER='averagenetworkscienceenjoyer'
export SHLVL='1'
export VIRTUAL_ENV_PROMPT='bdvenv'
export PS1='(bdvenv) \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export PYENV_ROOT='/home/averagenetworkscienceenjoyer/.pyenv'
export WSLENV=''
export XDG_DATA_DIRS='/usr/local/share:/usr/share:/var/lib/snapd/desktop'
export PATH='/home/averagenetworkscienceenjoyer/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/bin:/home/averagenetworkscienceenjoyer/.local/bin:/home/averagenetworkscienceenjoyer/.pyenv/shims:/home/averagenetworkscienceenjoyer/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Microsoft/jdk-11.0.16.101-hotspot/bin:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/User/Documents/gpgstuff/GnuPG/bin:/mnt/c/Program Files/MATLAB/R2022b/runtime/win64:/mnt/c/Program Files/MATLAB/R2022b/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Users/User/AppData/Local/Android/Sdk/cmdline-tools/latest/bin:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/User/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/User/.dotnet/tools:/mnt/c/Users/User/AppData/Roaming/Python/Python310/Scripts:/mnt/c/Users/User/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/User/Downloads/sqlite-dll-win64-x64-3430000:/snap/bin:/home/averagenetworkscienceenjoyer/.local/bin/:/usr/lib/android-sdk/tools:/usr/lib/android-sdk/platform-tools'
export HOSTTYPE='x86_64'
export OLDPWD='/home/averagenetworkscienceenjoyer/.buildozer/android/platform'
export _='/home/averagenetworkscienceenjoyer/.local/bin/buildozer'
export PACKAGES_PATH='/home/averagenetworkscienceenjoyer/.buildozer/android/packages'
export ANDROIDSDK='/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-sdk'
export ANDROIDNDK='/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-ndk-r25b'
export ANDROIDAPI='34'
export ANDROIDMINAPI='21'
export ANDROID_NDK_HOME='/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-ndk-r25b'
[INFO]: COMMAND:
cd /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/brocr && /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/brocr/gradlew clean assembleDebug
[WARNING]: ERROR: /home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/brocr/gradlew failed!
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'brocr', '--name', 'BrOCR', '--version', '0.1', '--package', 'com.tomsportfolio.brocr', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/app', '--permission', 'android.permission.INTERNET', '--permission', 'CAMERA', '--permission', 'WRITE_EXTERNAL_STORAGE (name=android.permission.WRITE_EXTERNAL_STORAGE;maxSdkVersion=18)', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--add-activity', 'com.android.sdklib.tool.sdkmanager.SdkManagerCli', '--orientation', 'portrait', '--enable-androidx', '--copy-libs', '--depend', 'com.android.tools.build:gradle:8.1.0', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/home/averagenetworkscienceenjoyer/pythonprojectretry/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/bin/bash'
# PYENV_SHELL = 'bash'
# WSL_DISTRO_NAME = 'Ubuntu-22.04'
# JAVA_HOME = '/usr/lib/jvm/java-11-openjdk-amd64'
# NAME = 'LAPTOP-FMGMUHFC'
# PWD = '/home/averagenetworkscienceenjoyer/pythonprojectretry'
# LOGNAME = 'averagenetworkscienceenjoyer'
# MOTD_SHOWN = 'update-motd'
# HOME = '/home/averagenetworkscienceenjoyer'
# LANG = 'C.UTF-8'
# WSL_INTEROP = '/run/WSL/8_interop'
# LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
# VIRTUAL_ENV = '/home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# ANDROID_HOME = '/usr/lib/android-sdk'
# TERM = 'xterm-256color'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# USER = 'averagenetworkscienceenjoyer'
# SHLVL = '1'
# VIRTUAL_ENV_PROMPT = 'bdvenv'
# PS1 = ('(bdvenv) \\[\\e]0;\\u@\\h: '
'\\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ ')
# PYENV_ROOT = '/home/averagenetworkscienceenjoyer/.pyenv'
# WSLENV = ''
# XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
# PATH = ('/home/averagenetworkscienceenjoyer/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/averagenetworkscienceenjoyer/.buildozer/android/bdvenv/bin:/home/averagenetworkscienceenjoyer/.local/bin:/home/averagenetworkscienceenjoyer/.pyenv/shims:/home/averagenetworkscienceenjoyer/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '
'Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common '
'Files/Oracle/Java/javapath:/mnt/c/Program '
'Files/Microsoft/jdk-11.0.16.101-hotspot/bin:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '
'Files/dotnet/:/mnt/c/Users/User/Documents/gpgstuff/GnuPG/bin:/mnt/c/Program '
'Files/MATLAB/R2022b/runtime/win64:/mnt/c/Program '
'Files/MATLAB/R2022b/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '
'Files/Git/cmd:/mnt/c/Program Files/Microsoft SQL Server/Client '
'SDK/ODBC/170/Tools/Binn/:/mnt/c/Users/User/AppData/Local/Android/Sdk/cmdline-tools/latest/bin:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/User/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/User/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/User/.dotnet/tools:/mnt/c/Users/User/AppData/Roaming/Python/Python310/Scripts:/mnt/c/Users/User/AppData/Local/Programs/Microsoft '
'VS '
'Code/bin:/mnt/c/Users/User/Downloads/sqlite-dll-win64-x64-3430000:/snap/bin:/home/averagenetworkscienceenjoyer/.local/bin/:/usr/lib/android-sdk/tools:/usr/lib/android-sdk/platform-tools')
# HOSTTYPE = 'x86_64'
# OLDPWD = '/home/averagenetworkscienceenjoyer/.buildozer/android/platform'
# _ = '/home/averagenetworkscienceenjoyer/.local/bin/buildozer'
# PACKAGES_PATH = '/home/averagenetworkscienceenjoyer/.buildozer/android/packages'
# ANDROIDSDK = '/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/averagenetworkscienceenjoyer/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '34'
# ANDROIDMINAPI = '21'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
The text was updated successfully, but these errors were encountered:
👋 @averagenetworkscienceenjoyer, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
When I try to run the following command buildozer gets stuck on mergeDebugJavaResource.
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: