Closed mecrayavcin closed 9 months ago
👋 @mecrayavcin, Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental. We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer. There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe. Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.
im having this issue too
my output:
[WARNING]: ERROR: /home/kachi/git/engrizz/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/engder/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
# Command failed: ['/usr/bin/python', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'engder', '--name', 'EngDer', '--version', '0.1', '--package', 'org.engder.engder', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/kachi/git/engrizz/.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/kachi/git/engrizz/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/usr/bin/bash'
# WINDOWID = '16777219'
# COLORTERM = 'truecolor'
# CREDENTIALS_DIRECTORY = '/run/credentials/getty@tty1.service'
# MEMORY_PRESSURE_WRITE = 'c29tZSAyMDAwMDAgMjAwMDAwMAA='
# XDG_SEAT = 'seat0'
# PWD = '/home/kachi/git/engrizz'
# LOGNAME = 'kachi'
# XDG_SESSION_TYPE = 'x11'
# SYSTEMD_EXEC_PID = '606'
# WINDOWPATH = '1'
# MOTD_SHOWN = 'pam'
# HOME = '/home/kachi'
# LANG = 'en_US.UTF-8'
# MEMORY_PRESSURE_WATCH = '/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure'
# INVOCATION_ID = '6a3c520ac0ca48949a01cfe6b128983f'
# ALACRITTY_SOCKET = '/run/user/1000/Alacritty-:0-5351.sock'
# XDG_SESSION_CLASS = 'user'
# ANDROID_HOME = '/opt/android-sdk'
# TERM = 'alacritty'
# USER = 'kachi'
# DISPLAY = ':0'
# SHLVL = '3'
# ANDROID_SDK_ROOT = '/opt/android-sdk'
# XDG_VTNR = '1'
# XDG_SESSION_ID = '1'
# XDG_RUNTIME_DIR = '/run/user/1000'
# DEBUGINFOD_URLS = 'https://debuginfod.archlinux.org '
# XDG_DATA_DIRS = '/home/kachi/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/'
# GDK_BACKEND = 'x11'
# PATH = '/home/kachi/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl'
# ALACRITTY_LOG = '/tmp/Alacritty-5351.log'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
# MAIL = '/var/spool/mail/kachi'
# ALACRITTY_WINDOW_ID = '16777219'
# _ = '/usr/bin/buildozer'
# OLDPWD = '/home/kachi'
# PACKAGES_PATH = '/home/kachi/.buildozer/android/packages'
# ANDROIDSDK = '/home/kachi/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/kachi/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# 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
hope this'll get fixed soon!
im having this issue too
my output:
[WARNING]: ERROR: /home/kachi/git/engrizz/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/engder/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 # Command failed: ['/usr/bin/python', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'engder', '--name', 'EngDer', '--version', '0.1', '--package', 'org.engder.engder', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/kachi/git/engrizz/.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/kachi/git/engrizz/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug'] # ENVIRONMENT: # SHELL = '/usr/bin/bash' # WINDOWID = '16777219' # COLORTERM = 'truecolor' # CREDENTIALS_DIRECTORY = '/run/credentials/getty@tty1.service' # MEMORY_PRESSURE_WRITE = 'c29tZSAyMDAwMDAgMjAwMDAwMAA=' # XDG_SEAT = 'seat0' # PWD = '/home/kachi/git/engrizz' # LOGNAME = 'kachi' # XDG_SESSION_TYPE = 'x11' # SYSTEMD_EXEC_PID = '606' # WINDOWPATH = '1' # MOTD_SHOWN = 'pam' # HOME = '/home/kachi' # LANG = 'en_US.UTF-8' # MEMORY_PRESSURE_WATCH = '/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure' # INVOCATION_ID = '6a3c520ac0ca48949a01cfe6b128983f' # ALACRITTY_SOCKET = '/run/user/1000/Alacritty-:0-5351.sock' # XDG_SESSION_CLASS = 'user' # ANDROID_HOME = '/opt/android-sdk' # TERM = 'alacritty' # USER = 'kachi' # DISPLAY = ':0' # SHLVL = '3' # ANDROID_SDK_ROOT = '/opt/android-sdk' # XDG_VTNR = '1' # XDG_SESSION_ID = '1' # XDG_RUNTIME_DIR = '/run/user/1000' # DEBUGINFOD_URLS = 'https://debuginfod.archlinux.org ' # XDG_DATA_DIRS = '/home/kachi/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/' # GDK_BACKEND = 'x11' # PATH = '/home/kachi/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/cmdline-tools/latest/bin:/opt/android-sdk/platform-tools:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl' # ALACRITTY_LOG = '/tmp/Alacritty-5351.log' # DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus' # MAIL = '/var/spool/mail/kachi' # ALACRITTY_WINDOW_ID = '16777219' # _ = '/usr/bin/buildozer' # OLDPWD = '/home/kachi' # PACKAGES_PATH = '/home/kachi/.buildozer/android/packages' # ANDROIDSDK = '/home/kachi/.buildozer/android/platform/android-sdk' # ANDROIDNDK = '/home/kachi/.buildozer/android/platform/android-ndk-r25b' # ANDROIDAPI = '31' # 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
hope this'll get fixed soon!
I fixed it
remove the quotes in spec:
android.gradle_dependencies = 'com.google.firebase:firebase-ads:21.4.0' -->> android.gradle_dependencies = com.google.firebase:firebase-ads:21.4.0
Please take it to support as detailed above.
my output:
### [WARNING]: ERROR: /home/user/PycharmProjects/magic_ball/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/magic/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/user/PycharmProjects/magic_ball/.venv/bin/python', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'magic', '--name', 'Magic_ball', '--version', '0.1', '--package', 'org.test.magic', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/user/PycharmProjects/magic_ball/.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/user/PycharmProjects/magic_ball/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/bin/bash'
# SESSION_MANAGER = 'local/Alonso:@/tmp/.ICE-unix/1692,unix/Alonso:/tmp/.ICE-unix/1692'
# QT_ACCESSIBILITY = '1'
# SNAP_REVISION = '404'
# XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
# XDG_MENU_PREFIX = 'gnome-'
# GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
# SNAP_REAL_HOME = '/home/user'
# TERMINAL_EMULATOR = 'JetBrains-JediTerm'
# SNAP_USER_COMMON = '/home/user/snap/pycharm-community/common'
# GNOME_SHELL_SESSION_MODE = 'ubuntu'
# SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
# MEMORY_PRESSURE_WRITE = 'c29tZSAyMDAwMDAgMjAwMDAwMAA='
# TERM_SESSION_ID = '7673aa59-bce7-47e2-86d8-a6bbb917b874'
# SNAP_INSTANCE_KEY = ''
# XMODIFIERS = '@im=ibus'
# DESKTOP_SESSION = 'ubuntu'
# BAMF_DESKTOP_FILE_HINT = '/var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop'
# GTK_MODULES = 'gail:atk-bridge'
# SNAP_EUID = '1000'
# PWD = '/home/user/PycharmProjects/magic_ball'
# XDG_SESSION_DESKTOP = 'ubuntu'
# LOGNAME = 'user'
# XDG_SESSION_TYPE = 'wayland'
# SYSTEMD_EXEC_PID = '1740'
# XAUTHORITY = '/run/user/1000/.mutter-Xwaylandauth.63Y1R2'
# DESKTOP_STARTUP_ID = 'gnome-shell/PyCharm Community Edition/1740-1-Alonso_TIME1283125'
# SNAP_CONTEXT = 'dLyFl0eXQe_oiN5ZWr00Gu9SgRwd6R2JY6tcZybQJH2u0zRwRbka'
# GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG'
# HOME = '/home/user'
# USERNAME = 'user'
# IM_CONFIG_PHASE = '1'
# LANG = 'ru_RU.UTF-8'
# 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=00: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:*.avif=01;35:*.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:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:'
# XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
# VIRTUAL_ENV = '/home/user/PycharmProjects/magic_ball/.venv'
# MEMORY_PRESSURE_WATCH = '/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure'
# WAYLAND_DISPLAY = 'wayland-0'
# SNAP_ARCH = 'amd64'
# SNAP_INSTANCE_NAME = 'pycharm-community'
# SNAP_USER_DATA = '/home/user/snap/pycharm-community/404'
# INVOCATION_ID = '527727081bce47d98a679e9db622a5ae'
# MANAGERPID = '1517'
# SNAP_REEXEC = ''
# SNAP_UID = '1000'
# GJS_DEBUG_OUTPUT = 'stderr'
# GNOME_SETUP_DISPLAY = ':1'
# XDG_ACTIVATION_TOKEN = 'gnome-shell/PyCharm Community Edition/1740-1-Alonso_TIME1283125'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# XDG_SESSION_CLASS = 'user'
# TERM = 'xterm-256color'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# USER = 'user'
# SNAP = '/snap/pycharm-community/404'
# SNAP_COMMON = '/var/snap/pycharm-community/common'
# SNAP_VERSION = '2024.1.6'
# DISPLAY = ':0'
# SHLVL = '1'
# SNAP_LIBRARY_PATH = '/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void'
# GSM_SKIP_SSH_AGENT_WORKAROUND = 'true'
# SNAP_COOKIE = 'dLyFl0eXQe_oiN5ZWr00Gu9SgRwd6R2JY6tcZybQJH2u0zRwRbka'
# QT_IM_MODULE = 'ibus'
# VIRTUAL_ENV_PROMPT = '.venv'
# SNAP_DATA = '/var/snap/pycharm-community/404'
# XDG_RUNTIME_DIR = '/run/user/1000'
# PS1 = ('(.venv) \\[\\e]0;\\u@\\h: '
'\\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ ')
# DEBUGINFOD_URLS = 'https://debuginfod.ubuntu.com '
# SNAP_NAME = 'pycharm-community'
# JOURNAL_STREAM = '8:12145'
# XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
# PATH = '/home/user/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/user/PycharmProjects/magic_ball/.venv/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin'
# GDMSESSION = 'ubuntu'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
# GIO_LAUNCHED_DESKTOP_FILE_PID = '3055'
# GIO_LAUNCHED_DESKTOP_FILE = '/var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop'
# _ = '/home/user/PycharmProjects/magic_ball/.venv/bin/buildozer'
# PACKAGES_PATH = '/home/user/.buildozer/android/packages'
# ANDROIDSDK = '/home/user/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/user/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '31'
# 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
@blackwars2: Please take it to support as detailed above.
me too
I think I am done posting the same comment.
Thanks I was litreally STUCK FOR 9 Hours DUDE THANKSSSSSSSS
I have a problem in Buildozer that related with Gradlew. I have a free app so i used Kivmob library to show ads in it.Although the Kivmob's document is a little old but mainly it needs android.minapi,android.sdk, android.ndk, android.gradle_dependencies, android.meta_data, p4a.branch and android.permissions. When i want to create apk i get error. If i only use android.api = 33 there is no problem Could you please help me about this issue please?
Versions
python_version = 3.11.7 kivy_version = 2.3.0
java -version
Some Important settings
If i comment them (above buildozer.specs lines), (out of android.api = 33) there are no problem. I get apk.
BUILDOZER SPECS:
Buildozer ERROR lOG: