my kivy app stop after loading

346 views
Skip to first unread message

husam alkdary

unread,
May 17, 2020, 10:29:56 AM5/17/20
to Kivy users support
I create an android application using kivy but the app stop after it shows me the loading screen for seconds and the app stop 

I use logcat to get the log for may phone when I'm trying to open the app I don't knew if the issue is in the log 
I will attach the log.txt my kivy app name is kivy for all 

log.txt

husam alkdary

unread,
May 17, 2020, 12:29:01 PM5/17/20
to Kivy users support
also I'm getting this warning at the last lines in the building operation 
incase that may help

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
# Android packaging done!
# APK Kivy_for_All-1.1-armeabi-v7a-debug.apk available in the bin directory


Robert Flatt

unread,
May 17, 2020, 1:09:33 PM5/17/20
to Kivy users support
The log does show a crash (traceback or backtrace), it does not show SDL2 or Python.
It does not look as if logcat was running when the crash occured.

Also try using log_level 2  for the Buildozer build.

husam alkdary

unread,
May 17, 2020, 4:43:04 PM5/17/20
to Kivy users support
I run the logcat when  was trying to open the app on my phone 
also the log level = 2 and this's the full log
I attached a new log using logcat when I'm trying to run the app ma few times

hussam@Hussam-Hardware:/mnt/c/users/husam/kivy_apk$ buildozer -v android debug
# 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 /home/hussam/.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 'git config --get remote.origin.url'
# Cwd /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
https
://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
* master 17dfa6a0 [origin/master] Merge pull request #2174 from kivy/release-2020.04.29
# Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /home/hussam/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/hussam/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /home/hussam/.buildozer/android/platform/android-ndk-r19c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=Kivy_for_All --bootstrap=sdl2 --requirements=python3,kivy,pygments --arch armeabi-v7a --copy-libs --color=always --storage-dir="/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
# Cwd /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
[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/hussam/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         Kivy_for_All: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, pygments, certifi), built for archs (armeabi-v7a)
[INFO]:    Kivy_for_All has compatible recipes, using this one
# Build the application #8
# Copy application source from /mnt/c/users/husam/kivy_apk
# Create directory /mnt/c/users/husam/kivy_apk/.buildozer/android/app
# Copy /mnt/c/users/husam/kivy_apk/kv.kv
# Copy /mnt/c/users/husam/kivy_apk/main.py
# Copy /mnt/c/users/husam/kivy_apk/mobileIcon.png
# Create directory /mnt/c/users/husam/kivy_apk/.buildozer/android/app/images
# Copy /mnt/c/users/husam/kivy_apk/images/AccordionItem_background_normal.png
# Copy /mnt/c/users/husam/kivy_apk/images/AccordionItem_background_selected.png
# Copy /mnt/c/users/husam/kivy_apk/images/app_stop.png
# Copy /mnt/c/users/husam/kivy_apk/images/CR7.png
# Copy /mnt/c/users/husam/kivy_apk/images/green traffic.png
# Copy /mnt/c/users/husam/kivy_apk/images/image_1.png
# Copy /mnt/c/users/husam/kivy_apk/images/image_2.png
# Copy /mnt/c/users/husam/kivy_apk/images/image_3.png
# Copy /mnt/c/users/husam/kivy_apk/images/kivy logo.png
# Copy /mnt/c/users/husam/kivy_apk/images/lampoff.png
# Copy /mnt/c/users/husam/kivy_apk/images/lampon.png
# Copy /mnt/c/users/husam/kivy_apk/images/Misse.png
# Copy /mnt/c/users/husam/kivy_apk/images/pause.png
# Copy /mnt/c/users/husam/kivy_apk/images/play.png
# Copy /mnt/c/users/husam/kivy_apk/images/red traffic.png
# Copy /mnt/c/users/husam/kivy_apk/images/search.png
# Copy /mnt/c/users/husam/kivy_apk/images/search1.jpg
# Copy /mnt/c/users/husam/kivy_apk/images/share.png
# Copy /mnt/c/users/husam/kivy_apk/images/yellow traffic.png
# Package the application
# project.properties updated
# Gradle project detected, copy files /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/src/main/java
# Run '/usr/bin/python3 -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name Kivy_for_All --name \'Kivy for All\' --version 1.1 --package org.test.kivy_for_all --android_api 27 --minsdk 21 --ndk-api 21 --private /mnt/c/users/husam/kivy_apk/.buildozer/android/app --icon /mnt/c/users/husam/kivy_apk/mobileIcon.png --orientation portrait --window --copy-libs --arch armeabi-v7a --color=always --storage-dir="/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
# Cwd /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Getting Android API version from user argument: 27
[INFO]:    Available Android APIs are (27)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/hussam/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         Kivy_for_All: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, pygments, certifi), built for archs (armeabi-v7a)
[INFO]:    Kivy_for_All has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         Kivy_for_All: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, pygments, certifi), built for archs (armeabi-v7a)
[INFO]:    Kivy_for_All has compatible recipes, using this one
[INFO]:    -> directory context /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
[INFO]:    -> directory context /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All
Listing '/tmp/p4a-extra-env-ren41qvb'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/app'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/app/_applibs'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/app/images'...
Compiling '/mnt/c/users/husam/kivy_apk/.buildozer/android/app/main.py'...
Compiling '/mnt/c/users/husam/kivy_apk/.buildozer/android/app/sitecustomize.py'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/modules'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/Kivy-1.11.1-py3.8.egg-info'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/Pygments-2.6.1.dist-info'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/android'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/bin'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/certifi'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/certifi-2020.4.5.1.dist-info'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/jnius'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/jnius/src'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/jnius/src/org'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/jnius/src/org/jnius'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/audio'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/camera'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/clipboard'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/gl'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/image'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/spelling'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/text'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/video'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/core/window'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data/fonts'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data/glsl'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data/images'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data/keyboards'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/data/logo'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/deps'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/effects'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/extras'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/garden'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/graphics'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/graphics/cgl_backend'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/include'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/input'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/input/postproc'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/input/providers'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/lang'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/lib'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/lib/gstplayer'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/lib/vidcore_lite'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/modules'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/network'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/storage'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/gles_compat'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/highlight'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/packaging/pyinstaller_hooks'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/pep8checker'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/theming'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/tools/theming/defaulttheme'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/uix'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/uix/behaviors'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/kivy/uix/recycleview'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pkg_resources'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pkg_resources/_vendor'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pkg_resources/_vendor/packaging'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pkg_resources/extern'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pygments'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pygments/filters'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pygments/formatters'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pygments/lexers'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pygments/styles'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/pyjnius-1.2.1-py3.8.egg-info'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools/_vendor'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools/_vendor/packaging'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools/command'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools/extern'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/setuptools-40.9.0-py3.8.egg-info'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/usr'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/usr/local'...
Listing '/mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/_python_bundle/_python_bundle/site-packages/usr/local/bin'...
[INFO]:    Detected highest available build tools version to be 30.0.0-rc4
[DEBUG]:   -> running gradlew assembleDebug
[DEBUG]:        Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for detailsUG]:        > IDLE
[DEBUG]:
[DEBUG]:        BUILD SUCCESSFUL in 4m 13s
[DEBUG]:        27 actionable tasks: 4 executed, 23 up-to-date
[INFO]:    <- directory context /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/python-for-android
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         Kivy_for_All: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, pygments, certifi), built for archs (armeabi-v7a)
[INFO]:    Kivy_for_All has compatible recipes, using this one
[INFO]:    # Copying android package to current directory
[INFO]:    # Android package filename not found in build output. Guessing...
[INFO]:    # Found android package file: /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/build/outputs/apk/debug/Kivy_for_All-debug.apk
[INFO]:    # Add version number to android package
[INFO]:    # Android package renamed to Kivy_for_All-debug-1.1-.apk
[DEBUG]:   -> running cp /mnt/c/users/husam/kivy_apk/.buildozer/android/platform/build-armeabi-v7a/dists/Kivy_for_All/build/outputs/apk/debug/Kivy_for_All-debug.apk Kivy_for_All-debug-1.1-.apk
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
# Android packaging done!
# APK Kivy_for_All-1.1-armeabi-v7a-debug.apk available in the bin directory
log.txt

Robert Flatt

unread,
May 17, 2020, 6:04:02 PM5/17/20
to Kivy users support
The SDL2 part of the app is not starting.
(Kivy depends on Python, and here Python depends on SDL2)

1) Do this and post the full log

buildozer appclean
buildozer android debug

2) Do you get the same fail with Hello World, and the default .spec  ?

husam alkdary

unread,
May 18, 2020, 9:13:50 AM5/18/20
to Kivy users support
first I built my app and it's works fine but then I change some line the kivy and the python code and now is not work 
but before the changes it's work fine the .spec file is the same for both application 


the second build was built offline I didn't remove the .buildozer folder
also the    buildozer appclean command not work for me 

hussam@Hussam-Hardware:/mnt/c/users/husam/kivy_apk$ buildozer appclean
# Check configuration tokens
Unknown command/target appclean

Robert Flatt

unread,
May 18, 2020, 12:45:58 PM5/18/20
to Kivy users support
1) Repeat the build after deleting .buldozer , we need to see the FULL build
Perhaps there is an error there that did not prevent .apk creation ?

2) appclean  - probably a good idea to update Buildozer   (delete .buildozer on all projects)

3) Do you get the same fail with Hello World, and the default .spec  starting from nothing, now ?
This will tell us if we should be looking at the app code or not.

4) Does the app use any packages that are not pure Python?

Clearly I have no idea what the issue is. All I can do is tell you the steps I would go through to try to figure it out.

husam alkdary

unread,
May 18, 2020, 1:02:20 PM5/18/20
to Kivy users support
I rebuilt the app with hello world app without deleteing the .buildozer folder and without any change in the .spec file and the app works fine so I think the issue is in my code 
or about this " Does the app use any packages that are not pure Python? " !!
my python file contains lexer so this why I add pygments to the requirements  in the spec file 
 requirements = python3,kivy,pygments

Robert Flatt

unread,
May 18, 2020, 3:39:19 PM5/18/20
to Kivy users support
OK that is progress. Lets explore pygments....

Pygments says it is written in Python
A quick trip to the source code shows all .py files:
So lets assume for the moment it is pure Python (this still might not be true, but for the moment...)

So it should not be in the requirements list unless it has a recipe.

That was a lot of info, but it is important for you to know how to see where the pieces are.

So two things to try
1) comment the pygments reference in the app, don't worry about functationality we just want to get the app to start (for now).
I would strongly reccomend deleting .buildozer, but you could try without deleting it.

2) remove pygments from the requirements
I would strongly reccomend deleting .buildozer, but you could try without deleting it.
rebuild the full app containing the pygments references.
Save the build log, we may be interested in the pygments entries.

husam alkdary

unread,
May 18, 2020, 5:45:59 PM5/18/20
to Kivy users support
first I comment any line contain laxer I my app code and still I get the same issue 
then I remove the pygments  from the requirements the app can't be installed on my phone !!
I do all that without removing the .buildozer folder

Robert Flatt

unread,
May 18, 2020, 7:39:39 PM5/18/20
to Kivy users support
Attached is a small test case that works for me using Buildozer 1.0 

The .spec was build with      buildozer init
I had to add pygments to the requirements, it seems to be one of thoses cases that p4a can't figure out.
If I did not add it, I got:
05-18 13:26:48.721  4053  4093 I python  :  ModuleNotFoundError: No module named 'pygments'

Try it. (it shows the label text as some html)

main.py
Reply all
Reply to author
Forward
0 new messages