P
P
PashaLynx2020-11-01 17:59:56
Building projects
PashaLynx, 2020-11-01 17:59:56

Kivy crashes on android on startup, what's the problem?

Firework. I collected an application on kiwi for android through a builddozer. On Linux everything works fine. But build on app launch shows kivy app loading screen and crashes.

The command buildozer android debug deploy run logcat > log.txt showed me this, but I didn't quite understand it:

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Run 'dpkg --version'
# Cwd None
Система управления пакетами Debian «dpkg», версия 1.19.0.5 (amd64).
Это свободное программное обеспечение. См. условия распространения в
Универсальной общественной лицензии GNU версии 2 или более поздней.
НИКАКИЕ гарантии не предоставляются.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/overlord/anaconda3/envs/students_mobile/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
# Run '/home/overlord/.buildozer/android/platform/android-sdk/platform-tools/adb devices'
# Cwd None
List of devices attached

(students_mobile) [email protected]:~/PycharmProjects/students_mobile$ buildozer android logcat
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Run 'dpkg --version'
# Cwd None
Система управления пакетами Debian «dpkg», версия 1.19.0.5 (amd64).
Это свободное программное обеспечение. См. условия распространения в
Универсальной общественной лицензии GNU версии 2 или более поздней.
НИКАКИЕ гарантии не предоставляются.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/overlord/anaconda3/envs/students_mobile/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
# Run '/home/overlord/.buildozer/android/platform/android-sdk/platform-tools/adb devices'
# Cwd None
List of devices attached

(students_mobile) [email protected]:~/PycharmProjects/students_mobile$ buildozer android debug deploy run logcat > log.txt
[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/overlord/.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]:         myapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]:    myapp has compatible recipes, using this one
[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/overlord/.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]:         myapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]:    myapp has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         myapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]:    myapp has compatible recipes, using this one
[INFO]:    -> directory context /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/python-for-android
[INFO]:    -> directory context /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a
/home/overlord/PycharmProjects/students_mobile/.buildozer/android/app/libs/applibs/kivymd/date_picker.py:327: SyntaxWarning: "is" with a literal. Did you mean "=="?
  op = 1 if operation is 'next' else -1
[INFO]:    Detected highest available build tools version to be 30.0.2
[DEBUG]:   -> running gradlew assembleDebug
[DEBUG]:        
[DEBUG]:        Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[DEBUG]:        Use '--warning-mode all' to show the individual deprecation warnings.
[DEBUG]:        See https://docs.gradle.org/6.4.1/userguide/command_line_interface.html#sec:command_line_warnings
[DEBUG]:        
[DEBUG]:        BUILD SUCCESSFUL in 3s
[DEBUG]:        27 actionable tasks: 4 executed, 23 up-to-date

[INFO]:    <- directory context /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/python-for-android
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         myapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]:    myapp 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: /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/build/outputs/apk/debug/myapp__armeabi-v7a-debug.apk
[INFO]:    # Add version number to android package
[INFO]:    # Android package renamed to myapp__armeabi-v7a-debug-0.1-.apk
[DEBUG]:   -> running cp /home/overlord/PycharmProjects/students_mobile/.buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/build/outputs/apk/debug/myapp__armeabi-v7a-debug.apk myapp__armeabi-v7a-debug-0.1-.apk


In the comment below I will throw .spec
if you need code - https://github.com/rysevpd/students_mobile

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question