Why can Buildozer not build my KivyMD app?

0

1

I have a problem with buildozer on the Kivy vdi in VirtualBox. I've installed the newest version of buildozer (i guess) and still had to install many other mostly java related things. Now I have a new error and didn't manage to find any solutions online yet. I used the command buildozer android debug which produces some installation messages first and shows me this error then:

[INFO]:    Recipe kivy: version "master" requested
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/kivy/.buildozer/android/platform/android-ndk-r17c
[INFO]:    Could not determine NDK version, no source.properties in the NDK dir
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[WARNING]: ndk_platform doesn't exist: /home/kivy/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm
[WARNING]: Could not find any toolchain for arm-linux-androideabi!
[ERROR]:   Build failed: python-for-android cannot continue due to the missing executables above
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=trainer --bootstrap=sdl2 --requirements=python3,kivy==master,git+https://github.com/HeaTTheatR/KivyMD.git,python3crystax,kivy,plyer --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/kivy/Desktop/LinguTrainer/.buildozer/android/platform/build" --ndk-api=21
# ENVIRONMENT:
#     TEXTDOMAINDIR = '/usr/share/locale/'
#     SSH_AGENT_PID = '1277'
#     LC_PAPER = 'fr_FR.UTF-8'
#     UPSTART_JOB = 'lxsession'
#     TERM = 'xterm'
#     XDG_SEAT = 'seat0'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     TEXTDOMAIN = 'im-config'
#     SHELL = '/bin/bash'
#     INSTANCE = ''
#     SSH_AGENT_LAUNCHER = 'upstart'
#     LC_NAME = 'fr_FR.UTF-8'
#     USER = 'kivy'
#     LC_MEASUREMENT = 'fr_FR.UTF-8'
#     LC_NUMERIC = 'fr_FR.UTF-8'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     XDG_CONFIG_DIRS = '/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg'
#     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: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:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=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:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=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:*.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:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=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:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'
#     DBUS_SESSION_BUS_ADDRESS = 'unix:abstract=/tmp/dbus-0awOCGJBmE'
#     _LXSESSION_PID = '1431'
#     LC_TIME = 'fr_FR.UTF-8'
#     JOB = 'dbus'
#     PACKAGES_PATH = '/home/kivy/.buildozer/android/packages'
#     ANDROIDSDK = '/home/kivy/.buildozer/android/platform/android-sdk'
#     GDM_LANG = 'en_US'
#     XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
#     SESSION = 'Lubuntu'
#     XDG_CONFIG_HOME = '/home/kivy/.config'
#     PATH = '/home/kivy/.buildozer/android/platform/apache-ant-1.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
#     GDMSESSION = 'Lubuntu'
#     PWD = '/home/kivy/Desktop/LinguTrainer'
#     ANDROIDAPI = '27'
#     UPSTART_EVENTS = 'started xsession'
#     DISPLAY = ':0'
#     IM_CONFIG_PHASE = '1'
#     XDG_CURRENT_DESKTOP = 'LXDE'
#     SELINUX_INIT = 'YES'
#     LC_IDENTIFICATION = 'fr_FR.UTF-8'
#     LC_ADDRESS = 'fr_FR.UTF-8'
#     LC_TELEPHONE = 'fr_FR.UTF-8'
#     DEFAULTS_PATH = '/usr/share/gconf/Lubuntu.default.path'
#     ANDROIDNDK = '/home/kivy/.buildozer/android/platform/android-ndk-r17c'
#     LOGNAME = 'kivy'
#     QT4_IM_MODULE = 'xim'
#     SESSIONTYPE = 'lxsession'
#     XAUTHORITY = '/home/kivy/.Xauthority'
#     CLUTTER_IM_MODULE = 'xim'
#     DESKTOP_SESSION = 'Lubuntu'
#     UPSTART_INSTANCE = ''
#     MANDATORY_PATH = '/usr/share/gconf/Lubuntu.mandatory.path'
#     XDG_RUNTIME_DIR = '/run/user/1000'
#     XMODIFIERS = '@im=ibus'
#     SAL_USE_VCLPLUGIN = 'gtk'
#     GTK_IM_MODULE = 'xim'
#     _ = '/usr/local/bin/buildozer'
#     XDG_MENU_PREFIX = 'lxde-'
#     UPSTART_SESSION = 'unix:abstract=/com/ubuntu/upstart-session/1000/1125'
#     ANDROIDMINAPI = '21'
#     XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/kivy'
#     XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
#     LC_MONETARY = 'fr_FR.UTF-8'
#     XDG_DATA_DIRS = '/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/'
#     XDG_SESSION_ID = 'c1'
#     HOME = '/home/kivy'
#     OLDPWD = '/home/kivy/Desktop'
#     LANG = 'en_US.UTF-8'
#     LANGUAGE = 'en_US'
#     XDG_VTNR = '7'
#     SHLVL = '1'
#     SSH_AUTH_SOCK = '/tmp/ssh-KoxNHHBHtJkP/agent.1271'
# 
# 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

This is the part of the output from buildozer where it shows me first some info and then the error message. I already tried setting the ANDROIDAPI from 27 to 28 but that didn't change anything and for some awkward reason it's saying me to set the log_level to 2 even though it's already 2.

Many thanks in advance!

Frenggie

Posted 2019-06-15T01:22:43.693

Reputation: 13

No answers