UPD
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.0.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10,<1.12.5" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/user01/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/user01/.buildozer/android/platform/android-sdk-20
# Android NDK found at /home/user01/AndroidApp/buildozer/crystax-ndk-10.3.2
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3crystax,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/user01/AndroidApp/MyApp/.buildozer/android/platform/build'
# Cwd /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[WARNING]: NDK version was set as r9c, but checking the NDK dir claims it is 10.3.2.
[WARNING]: The build will try to continue, but it may fail and you should check that your setting is correct.
[WARNING]: If the NDK dir result is correct, you don't need to manually set the NDK ver.
[INFO]: Using Crystax NDK r9c
[INFO]: Found virtualenv at /usr/local/bin/virtualenv
[INFO]: Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]: Picking the latest gcc toolchain, here 5
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found a single valid recipe set: ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python3crystax', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]: The selected bootstrap is sdl2_gradle
[INFO]: # Creating dist with sdl2_gradle bootstrap
[INFO]: Dist will have name myapp and recipes (python3crystax, kivy)
[INFO]: Dist will also contain modules () installed from pip
[INFO]: -> running cp -r /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain/pythonforand...(and 140 more)
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Recipe build order is ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', u'python3crystax', 'sdl2', 'six', 'pyjnius', u'kivy']
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3crystax
[INFO]: Skipping hostpython3crystax download as no URL is set
[INFO]: Downloading sdl2_image
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_image
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_image
[INFO]: sdl2_image download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading sdl2_mixer
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]: sdl2_mixer download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading sdl2_ttf
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]: sdl2_ttf download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading python3crystax
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/python3crystax
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/python3crystax
[INFO]: -> running basename
[INFO]: -> running rm -f .mark-
[INFO]: -> running touch .mark-
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading sdl2
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2
working: SDL2-2.0.4.tar.gz [INFO]: sdl2 download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading six
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/six
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/six
[INFO]: six download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading pyjnius
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/pyjnius
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/pyjnius
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Downloading kivy
[INFO]: -> running mkdir -p /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/kivy
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/kivy
working: 1.10.0.zip [INFO]: kivy download already cached, skipping
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3crystax for armeabi-v7a
[INFO]: Skipping hostpython3crystax unpack as no URL is set
[INFO]: Unpacking sdl2_image for armeabi-v7a
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]: -> running tar tf /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_image/SDL2_image-2.0.1.tar.gz
[INFO]: -> running mv SDL2_image-2.0.1 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sd...(and 39 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking sdl2_mixer for armeabi-v7a
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]: -> running tar tf /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_mixer/SDL2_mixer-2.0.1.tar.gz
working: SDL2_mixer-2.0.1/acinclude/ltversion.m4 [INFO]: -> running mv SDL2_mixer-2.0.1 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sd...(and 39 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking sdl2_ttf for armeabi-v7a
working: SDL2_ttf-2.0.14.tar.gz [INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]: -> running tar tf /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2_ttf/SDL2_ttf-2.0.14.tar.gz
working: SDL2_ttf-2.0.14/acinclude/pkg.m4 [INFO]: -> running mv SDL2_ttf-2.0.14 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl...(and 36 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking python3crystax for armeabi-v7a
[INFO]: -> running basename
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/python3crystax-version3.5/armeabi-v7a
[INFO]: -> running cp -Rv /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/python3crystax/.mark- /home/u...(and 128 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking sdl2 for armeabi-v7a
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]: -> running tar tf /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/sdl2/SDL2-2.0.4.tar.gz
[INFO]: -> running mv SDL2-2.0.4 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gra...(and 26 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking six for armeabi-v7a
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/six-python3crystax/armeabi-v7a
[INFO]: -> running tar tf /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/packages/six/six-1.9.0.tar.gz
working: six-1.9.0/test_six.py [INFO]: -> running mv six-1.9.0 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/six-python3cr...(and 21 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking pyjnius for armeabi-v7a
[INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/pyjnius-python3crystax-sdl2/armeabi-v7a
[INFO]: -> running mv pyjnius-master /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/pyjnius-...(and 39 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: Unpacking kivy for armeabi-v7a
working: 1.10.0.zip [INFO]: -> directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/kivy-python3crystax-sdl2/armeabi-v7a
[INFO]: -> running mv kivy-1.10.0 /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/kivy-python...(and 30 more)
[INFO]: <- directory context /home/user01/AndroidApp/MyApp/.buildozer/android/platform/python-for-android-new-toolchain
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3crystax for armeabi-v7a
[INFO]: hostpython3crystax has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding sdl2_image for armeabi-v7a
[INFO]: sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2_image[armeabi-v7a]
[INFO]: Applying patch toggle_jpg_png_webp.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradl...(and 191 more)
[INFO]: Applying patch extra_cflags.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradl...(and 184 more)
[INFO]: Applying patch fix_with_ndk_15_plus.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradl...(and 192 more)
worki[INFO]: -> running touch /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-pyth...(and 34 more)
[INFO]: Prebuilding sdl2_mixer for armeabi-v7a
[INFO]: sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]: Applying patch toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradl...(and 203 more)
[INFO]: -> running touch /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-pyth...(and 34 more)
[INFO]: Prebuilding sdl2_ttf for armeabi-v7a
[INFO]: sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding python3crystax for armeabi-v7a
[INFO]: python3crystax has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding sdl2 for armeabi-v7a
[INFO]: sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for sdl2[armeabi-v7a]
[INFO]: Applying patch add_nativeSetEnv.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradl...(and 175 more)
[INFO]: -> running touch /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-pyth...(and 27 more)
[INFO]: Prebuilding six for armeabi-v7a
[INFO]: six has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding pyjnius for armeabi-v7a
[INFO]: pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for pyjnius[armeabi-v7a]
[INFO]: Applying patch sdl2_jnienv_getter.patch
[INFO]: -> running patch -t -d /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/pyjnius-python...(and 189 more)
working: patching file jnius/jnius_jvm_android.p[INFO]: -> running touch /home/user01/AndroidApp/MyApp/.buildozer/android/platform/build/build/other_builds/pyjnius-python3cryst...(and 36 more)
Searching path are: '/home/user01/AndroidApp/buildozer/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86/bin/:/home/user01/AndroidApp/buildozer/crystax-ndk-10.3.2/toolchains/arm-linux-androideabi-5/prebuilt/linux-x86_64/bin/:/home/user01/AndroidApp/buildozer/crystax-ndk-10.3.2:/home/user01/.buildozer/android/platform/android-sdk-20/tools:/home/user01/.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'
[INFO]: Prebuilding kivy for armeabi-v7a
[INFO]: kivy has no prebuild_armeabi_v7a, skipping
[INFO]: # Building recipes
[INFO]: Building hostpython3crystax for armeabi-v7a
[INFO]: Building sdl2_image for armeabi-v7a
[INFO]: Building sdl2_mixer for armeabi-v7a
[INFO]: Building sdl2_ttf for armeabi-v7a
[INFO]: Building python3crystax for armeabi-v7a
[INFO]: Building sdl2 for armeabi-v7a
[WARNING]: Couldn't find executable for CC. This indicates a problem locating the {} executable in the Android NDK, not that you don't have a normal compiler installed. Exiting.
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3crystax,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/user01/AndroidApp/MyApp/.buildozer/android/platform/build
#
# 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