Failing to build Apk

89 views
Skip to first unread message

ALINDA Fortunate

unread,
Apr 25, 2023, 1:08:37 PM4/25/23
to Kivy users support
Hello Team i am new to buildozer, i am facing the following error i am failing completely to debug it
Error message

alindafortunate@DESKTOP-083Q3R6:/mnt/c/users/PC/Desktop/Kivy_project$ buildozer android debug deploy run
# Check configuration tokens
# Ensure build layout
# Create directory /mnt/c/users/PC/Desktop/Kivy_project/.buildozer
# Create directory /mnt/c/users/PC/Desktop/Kivy_project/bin
# Create directory /mnt/c/users/PC/Desktop/Kivy_project/.buildozer/applibs
# Create directory /mnt/c/users/PC/Desktop/Kivy_project/.buildozer/android/platform
# Create directory /mnt/c/users/PC/Desktop/Kivy_project/.buildozer/android/app
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/alindafortunate/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-17-openjdk-amd64/bin/keytool
# Install platform
# Run ['git', 'clone', '-b', 'master', '--single-branch', 'https://github.com/kivy/python-for-android.git', 'python-for-android']
# Cwd /mnt/c/users/PC/Desktop/Kivy_project/.buildozer/android/platform
Cloning into 'python-for-android'...
Updating files: 100% (586/586), done.
# Run ['/usr/bin/python3', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="nt"', 'pep517', 'toml', 'packaging']
# Cwd None
# Apache ANT found at /home/alindafortunate/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/alindafortunate/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 25b
# Android NDK found at /home/alindafortunate/.buildozer/android/platform/android-ndk-r25b
# Installing/updating SDK platform tools if necessary
# Run ['/home/alindafortunate/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager', '--sdk_root=/home/alindafortunate/.buildozer/android/platform/android-sdk', 'platform-tools']
# Cwd /home/alindafortunate/.buildozer/android/platform/android-sdk
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
        at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
        at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
        at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        ... 5 more
# Command failed: ['/home/alindafortunate/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager', '--sdk_root=/home/alindafortunate/.buildozer/android/platform/android-sdk', 'platform-tools']
# ENVIRONMENT:
#     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=30;41: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:*.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:*.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:*.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:'
#     HOSTTYPE = 'x86_64'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'
#     LANG = 'C.UTF-8'
#     DISPLAY = ':0'
#     WSL_INTEROP = '/run/WSL/9_interop'
#     WSL_DISTRO_NAME = 'Ubuntu-18.04'
#     USER = 'alindafortunate'
#     WAYLAND_DISPLAY = 'wayland-0'
#     PWD = '/mnt/c/users/PC/Desktop/Kivy_project'
#     HOME = '/home/alindafortunate'
#     NAME = 'DESKTOP-083Q3R6'
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     SHELL = '/bin/bash'
#     TERM = 'xterm-256color'
#     SHLVL = '1'
#     WSL2_GUI_APPS_ENABLED = '1'
#     LOGNAME = 'alindafortunate'
#     XDG_RUNTIME_DIR = '/mnt/wslg/runtime-dir'
#     PATH = ('/home/alindafortunate/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/alindafortunate/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '
 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04LTS_1804.6.2.0_x64__79rhkp1fndgsc:/mnt/c/Program '
 'Files/Common '
 'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '
 'Files/Git/cmd:/mnt/c/Users/PC/AppData/Local/Programs/Python/Python37/Scripts/:/mnt/c/Users/PC/AppData/Local/Programs/Python/Python37/:/mnt/c/Users/PC/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program '
 'Files/JetBrains/PyCharm Community Edition 2023.1/bin:/snap/bin')
#     WSLENV = ''
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     _ = '/home/alindafortunate/.local/bin/buildozer'
#     OLDPWD = '/mnt/c'
#
# 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
alindafortunate@DESKTOP-083Q3R6:/mnt/c/users/PC/Desktop/Kivy_project$

--
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
Kagadi.

Aakash Aarya

unread,
Apr 25, 2023, 1:11:59 PM4/25/23
to kivy-...@googlegroups.com
Install java8 and above in your system. Then fire android debug.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAPifpCvVAouR1Hb2b68wHgXmW2UZnkzMSrkrE9zgFqPf3wbf4A%40mail.gmail.com.

Robert

unread,
Apr 25, 2023, 2:00:44 PM4/25/23
to Kivy users support
The above answer is incorrect.

Follow the install instructions
https://github.com/kivy/buildozer/blob/master/docs/source/installation.rst#targeting-android

ALINDA Fortunate

unread,
Apr 26, 2023, 5:55:53 PM4/26/23
to kivy-...@googlegroups.com
I have tried all that I can but I have failed. Friends kindly help me out.

This is the error message i am receiving
9.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_json.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_xxsubinterpreters.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/audioop.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_zoneinfo.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/zlib.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_posixsubprocess.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_ctypes.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/select.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/modules/_blake2.cpython-39.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libsqlite3.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libpython3.9.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libSDL2_mixer.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libssl1.1.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libmain.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libffi.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libcrypto1.1.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libSDL2.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libSDL2_image.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/armeabi-v7a/libSDL2_ttf.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libsqlite3.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libpython3.9.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libSDL2_mixer.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libssl1.1.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libmain.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libffi.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libcrypto1.1.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libSDL2.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libSDL2_image.so
[DEBUG]:        /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/libs/arm64-v8a/libSDL2_ttf.so
[INFO]:    Stripping libraries in private dir
[INFO]:    Frying eggs in /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp/_python_bundle__arm64-v8a/_python_bundle/site-packages
[INFO]:    <- directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/python-for-android
[INFO]:    Copying in SDL2 .java files from: /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL/android-project/app/src/main/java/org/libsdl/app
[INFO]:    -> directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp
[INFO]:    Saving distribution info
[INFO]:    <- directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/python-for-android
[INFO]:    # Your distribution was created successfully, exiting.
[INFO]:    Dist can be found at (for now) /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp






# Build the application #1
# Copy application source from /home/alindafortunate/Kivy_Project
# Create directory /home/alindafortunate/Kivy_Project/.buildozer/android/app
# Copy /home/alindafortunate/Kivy_Project/main.py.py
# Copy /home/alindafortunate/Kivy_Project/MainApp2.kv
# Package the application
# project.properties updated
# Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'drawapp', '--name', 'draw', '--version', '0.1', '--package', 'org.drawapp.drawapp', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/alindafortunate/Kivy_Project/.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/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /home/alindafortunate/Kivy_Project/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]:    Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 31
[INFO]:    Available Android APIs are (31)
[INFO]:    Requested API target 31 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/alindafortunate/.buildozer/android/platform/android-ndk-r25b
[INFO]:    Found NDK version 25b
[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]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         drawapp: 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, arm64-v8a)
[INFO]:    drawapp has compatible recipes, using this one
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         drawapp: 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, arm64-v8a)
[INFO]:    drawapp has compatible recipes, using this one
[INFO]:    -> directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/python-for-android
[INFO]:    -> directory context /home/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/drawapp
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
BUILD FAILURE: No main.py(c) found in your app directory. This
file must exist to act as the entry point for you app. If your app is
started by a file with a different name, rename it to main.py or add a
main.py that loads it.
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'drawapp', '--name', 'draw', '--version', '0.1', '--package', 'org.drawapp.drawapp', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/alindafortunate/Kivy_Project/.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/alindafortunate/Kivy_Project/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']

# ENVIRONMENT:
#     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=30;41: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:*.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:*.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:*.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:'
#     HOSTTYPE = 'x86_64'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     ANDROID_HOME = '/home/alindafortunate/Android'

#     PULSE_SERVER = 'unix:/mnt/wslg/PulseServer'
#     LANG = 'C.UTF-8'
#     DISPLAY = ':0'
#     SDKMAN_CANDIDATES_API = 'https://api.sdkman.io/2'
#     WSL_INTEROP = '/run/WSL/2889_interop'
#     WSL_DISTRO_NAME = 'Ubuntu-18.04'
#     JAVA_HOME = '/usr/lib/jvm/java-8-openjdk-amd64'

#     USER = 'alindafortunate'
#     WAYLAND_DISPLAY = 'wayland-0'
#     GRADLE_HOME = '/home/alindafortunate/.sdkman/candidates/gradle/current'
#     PWD = '/home/alindafortunate/Kivy_Project'

#     HOME = '/home/alindafortunate'
#     NAME = 'DESKTOP-083Q3R6'
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     SDKMAN_DIR = '/home/alindafortunate/.sdkman'

#     SHELL = '/bin/bash'
#     TERM = 'xterm-256color'
#     SDKMAN_CANDIDATES_DIR = '/home/alindafortunate/.sdkman/candidates'

#     SHLVL = '1'
#     WSL2_GUI_APPS_ENABLED = '1'
#     LOGNAME = 'alindafortunate'
#     XDG_RUNTIME_DIR = '/mnt/wslg/runtime-dir'
#     PATH = ('/home/alindafortunate/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/alindafortunate/.local/bin:/home/alindafortunate/.sdkman/candidates/gradle/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

 'Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04LTS_1804.6.2.0_x64__79rhkp1fndgsc:/mnt/c/Program '
 'Files/Common '
 'Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '
 'Files/Git/cmd:/mnt/c/Users/PC/AppData/Local/Programs/Python/Python37/Scripts/:/mnt/c/Users/PC/AppData/Local/Programs/Python/Python37/:/mnt/c/Users/PC/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program '
 'Files/JetBrains/PyCharm Community Edition '
 '2023.1/bin:/snap/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/home/alindafortunate/Android/tools:/home/alindafortunate/Android/platform-tools')
#     SDKMAN_PLATFORM = 'linuxx64'

#     WSLENV = ''
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     _ = '/home/alindafortunate/.local/bin/buildozer'
#     OLDPWD = '/home/alindafortunate'
#     PACKAGES_PATH = '/home/alindafortunate/.buildozer/android/packages'
#     ANDROIDSDK = '/home/alindafortunate/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/alindafortunate/.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

This is where my folder is kept.

File_Folder.PNG

Aakash Aarya

unread,
Apr 26, 2023, 7:09:34 PM4/26/23
to kivy-...@googlegroups.com
Rename your file main.py  according to kivy naming convention 

Robert

unread,
Apr 26, 2023, 8:23:26 PM4/26/23
to Kivy users support
TO: aarya....@gmail.com
Clearly the OP has done this, ChatGPT misleading you again?

Robert

unread,
Apr 26, 2023, 9:28:27 PM4/26/23
to Kivy users support
Some things for you to look at:


- check the install dependencies are correct, there is an odd reference to JDK8 in the $PATH
And JAVA_HOME is wrong - the install dependencies are definitely not correct.   (fix and appclean)

- This looks like it might be this issue
# Copy /home/alindafortunate/Kivy_Project/main.py.py
See that .py.py ?
This should be
# Copy /home/alindafortunate/Kivy_Project/main.py
I have no idea how this could happen.
When you find it, for my future reference please tell me how this happened. Perhaps somewhere in buildozer.spec?

Some reading https://github.com/Android-for-Python/Android-for-Python-Users

ALINDA Fortunate

unread,
Apr 27, 2023, 5:18:21 AM4/27/23
to Kivy users support
I am using Ubuntu 18.04, may be let uninstall everything and then install Ubuntu 20 then I build afresh. 

Thank you for your response being a beginner it's really challenging me alot.

+256774339676

 "If you want to live a happy life, tie it to a goal, not to people or things."

A graduate of Bachelors Degree of Science in Computer Science of Gulu University.

@FortunateAlinda
Passionate about Python Development
And Computer related Dynamics

Reply all
Reply to author
Forward
0 new messages