kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.73k stars 498 forks source link

Buildozer build error #1806

Open WangZhongDian opened 4 months ago

WangZhongDian commented 4 months ago

version

question

Before I modified the requirements, the builder was working properly. I tried to add kivymd, but it encountered an error. If I tried to restore the requirements to default, the error would still not disappear. I had to delete the. builder and download it again to restore it to normal. I suspect that adding any new content to the requirements would result in an error. I would like to reiterate that it was working normally before

buildozer.spec

#这个.spec配置文件告诉Buildozer正在构建的应用程序的要求。 
# 
#它在很大程度上遵循.ini文件的语法。 
#有关常见错误的更多详细信息和警告,请参见文件末尾。

[app]

# (str) 应用的标题
title = My Application

# (str) 包名
package.name = test

# (str) 软件包域(安卓/ios软件包需要)
package.domain = org.test

# (str) main.py所在的源代码 `.`代表根目录
source.dir = .

# (list) 要包含的源文件(保留为空以包含所有文件)
source.include_exts = py,png,jpg,kv,atlas

# (list) 使用模式匹配,去匹配需要包含的文件
#source.include_patterns = assets/*,images/*.png

# (list)要排除的源文件(保留为空表示不排除任何内容)
#source.exclude_exts = spec

# (list) 要排除的目录列表(保留为空表示不排除任何内容)
#source.exclude_dirs = tests, bin, venv

# (list) 使用模式匹配的排除列表
# 不能使用路径前缀 './'
#source.exclude_patterns = license,images/*/*.jpg

# (str) 应用程序版本控制(方法1)
version = 0.1.0

# (str) 应用程序版本控制(方法2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) 应用程序要求、依赖库、等等
# comma separated e.g. requirements = sqlite3,kivy
requirements =  python3,kivy,https://github.com/kivymd/KivyMD/archive/master.zip

# (str) 为需求自定义源文件夹
# 使用配方为任何需求设置自定义来源
# requirements.source.kivy = ../../kivy

# (str) 应用程序的预处理
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) 应用程序的图标
#icon.filename = %(source.dir)s/data/icon.png

# (list) 支持的方向
# 有效选项包括: 横向landscape, 纵向portrait, 纵向反转portrait-reverse 或横向反转landscape-reverse
orientation = portrait

# (list) 要申报的服务列表
# 这目前仅与Android服务相关。
# 每个服务都包含一个名称(一个有效的Java类名,第一个字母大写)
# 后面跟着冒号,后面跟着Python脚本的名称(.py文件)
# 推出. 这后面可选 ":foreground" 用于前台服务 或
# ":foreground:sticky" 用于粘性前台服务.默认为后台服务.
# 不支持绑定服务。
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX特定
#

#
# author = © Copyright Info

# Kivy使用版本
osx.kivy_version = 2.3.0

#
# 特定Android配置
#

# (bool) 指示应用程序是否应为全屏
fullscreen = 0

#(string)Presplash背景颜色(适用于android工具链) 
#支持的格式为:#RRGGBB#AARGGBB或以下名称之一:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

#(字符串)使用Lottie格式的Presplash动画。 
看见https://lottiefiles.com/例如和https://airbnb.design/lottie/ 
#用于一般文档。 
#Lottie文件可以使用各种工具创建,如Adobe After Effect或Synfig。
#android.presplash_lottie = "path/to/lottie/file.json"

# (str) 应用程序的自适应图标(如果运行时Android API级别为26+,则使用该图标)
#icon.adaptive_foreground.filename = %(source.dir)s/data/icon_fg.png
#icon.adaptive_background.filename = %(source.dir)s/data/icon_bg.png

#(列表)权限 
#看见https://python-for-android.readthedocs.io/en/latest/buildoptions.html对于所有支持的语法和属性
#android.permissions = android.permission.INTERNET, (name=android.permission.WRITE_EXTERNAL_STORAGE;maxSdkVersion=18)

# (list) features(添加使用feature-tags来显示)
#android.features = android.hardware.usb.host

# (int) 目标安卓API,应该尽可能高。默认31
#android.api = 31

# (int) 您的APK/AAB将支持的最低API。
#android.minapi = 21

# (int) 要使用的Android SDK版本
#android.sdk = 20

# (str) 要使用的Android NDK版本
#android.ndk = 23b

# (int) 使用Android NDK API。这是你的应用程序将支持的最低API,它通常应该匹配android.minapi。
#android.ndk_api = 21

# (str) Android NDK目录(如果为空,将自动下载。)
#android.ndk_path =

# (str) Android SDK目录(如果为空,将自动下载。)
#android.sdk_path =

# (str) ANT目录(如果为空,将自动下载。)
#android.ant_path =

#(bool)如果为True,则跳过尝试更新Android SDK 
#这有助于避免过量的互联网下载或节省时间 
#当更新到期并且您只想测试/构建包时 
android.skip_update = True

#(bool)如果为True,则自动接受SDK许可证 
#协议。这仅用于自动化。如果设置为False, 
#默认情况下,首次运行时将显示许可证 
#buildozer。
android.accept_sdk_license = True

# (str) Android入口点,默认情况下适用于基于Kivy的应用程序
#android.entrypoint = org.kivy.android.PythonActivity

#(str)全名,包括实现Android活动的Java类的包路径 
#将该参数与android.entrypoint一起使用可以设置自定义Java类,而不是PythonActivity
#android.activity_class_name = org.kivy.android.PythonActivity

#(str)直接在AndroidManifest.xml的<manifest>元素内写入的额外xml 
#使用该参数可以提供从何处加载自定义XML代码的文件名
#android.extra_manifest_xml = ./src/android/extra_manifest.xml

#(str)直接在AndroidManifest.xml的<manifest><application>标记内写入的额外xml 
#使用该参数可以提供一个文件名,从中加载自定义XML参数:
#android.extra_manifest_application_arguments = ./src/android/extra_manifest_application_arguments.xml

#(str)实现Python服务的Java类的全名,包括包路径 
#使用该参数可以设置扩展PythonService的自定义Java类
#android.service_class_name = org.kivy.android.PythonService

#(str)Android应用程序主题,默认情况下适用于基于Kivy的应用程序
# android.apptheme = "@android:style/Theme.NoTitleBar"

#(list)整个项目的白名单模式
#android.whitelist =

#(bool)如果为True,您的应用程序将被列为家庭应用程序(启动器应用程序)
# android.home_app = False

# (str)自定义白名单文件的路径
#android.whitelist_src =

# ((str)自定义黑名单文件的路径
#android.blacklist_src =

#(list)要添加到库中以便pyjnius可以访问的Java.jar文件的列表 
#他们的班级。不要添加不需要的罐子,因为额外的罐子会减慢速度 
#向下构建过程。允许通配符匹配,例如: 
#OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

#(list)要添加到android项目的Java文件列表(可以是Java或 
#包含文件的目录)
#android.add_src =

#(列表)要添加的Android AAR档案
#android.add_aars =

#(list)将这些文件或目录放在apk assets目录中。 
#可以使用任何一种形式,并且资产不必位于“source.include_exts”中。
# 1) android.add_assets = source_asset_relative_path
# 2) android.add_assets = source_asset_path:destination_asset_relative_path
#android.add_assets =

#(list)将这些文件或目录放在apk-res目录中。 
#该选项可以通过三种方式使用,值可以包含一个或零“:” 
#一些例子: 
#1)要添加到资源中的文件,合法资源名称包含['A-z','0-9','_'] 
#android.add_resources=my_icons/all-inclusion.png:可绘制/all_inclusive.png 
#2)目录,此处的“legal_icons”必须包含一种资源 
#android.add_resources=legal_icons:可绘制 
#3)一个目录,这里的“legal_resources”必须包含一个或多个目录, 
#每种资源类型:drawable、xml等
# android.add_resources = legal_resources
#android.add_resources =

# (list) 渐变要添加的依赖项
#android.gradle_dependencies =

#(bool)启用AndroidX支持。在“android.gradle_dependences”时启用 
#包含“androidx”包,或Kotlin来源的任何包。
#android.enable_androidx需要android.api>=28
#android.enable_androidx = True

#(列表)添加java编译选项 
#例如,当使用android.gradle_dependences选项导入某些java库时,这可能是必要的 
#看见https://developer.android.com/studio/write/java8-support了解更多信息
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"

#(列表)要添加的渐变存储库{对于某些android可能是必要的。Gradle_dependences} 
#请用双引号括起来 
#例如android.gradle_repositories=“maven{url'https://repo.spring.io/release' }"
#android.add_gradle_repositories =

# (list) packaging options to add
# see https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/dsl/PackagingOptions
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes 
# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_packaging_options =

# (list) Java classes to add as activities to the manifest.
#android.add_activities = com.example.ExampleActivity

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (list) Copy these files to src/main/res/xml/ (used for example with intent-filters)
#android.res_xml = PATH_TO_FILE,

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (str) screenOrientation to set for the main activity.
# Valid values can be found at https://developer.android.com/guide/topics/manifest/activity-element
#android.manifest.orientation = fullSensor

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arm64_v8a = libs/android-v8/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Android logcat only display log for activity's pid
#android.logcat_pid_only = False

# (str) Android additional adb arguments
#android.adb_args = -H host.docker.internal

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
# In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time.
android.archs = arm64-v8a, armeabi-v7a

# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
# android.numeric_version = 1

# (bool) enables Android auto backup feature (Android API >=23)
android.allow_backup = True

# (str) XML file for custom backup rules (see official auto backup documentation)
# android.backup_rules =

# (str) If you need to insert variables into your AndroidManifest.xml file,
# you can do so with the manifestPlaceholders property.
# This property takes a map of key-value pairs. (via a string)
# Usage example : android.manifest_placeholders = [myCustomUrl:\"org.kivy.customurl\"]
# android.manifest_placeholders = [:]

# (bool) Skip byte compile for .py files
# android.no-byte-compile-python = False

# (str) The format used to package the app for release mode (aab or apk or aar).
# android.release_artifact = aab

# (str) The format used to package the app for debug mode (apk or aar).
# android.debug_artifact = apk

#
# Python for android (p4a) specific
#

# (str) python-for-android URL to use for checkout
#p4a.url = 

# (str) python-for-android fork to use in case if p4a.url is not specified, defaults to upstream (kivy)
#p4a.fork = kivy

# (str) python-for-android branch to use, defaults to master
#p4a.branch = master

# (str) python-for-android specific commit to use, defaults to HEAD, must be within p4a.branch
#p4a.commit = HEAD

# (str) python-for-android git clone directory
p4a.source_dir = /home/user/hostcwd/.buildozer/android/platform/python-for-android

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes = /home/user/hostcwd/.buildozer/android/platform/python-for-android

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# Run "buildozer android p4a -- bootstraps" for a list of valid values.
# p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =

# Control passing the --use-setup-py vs --ignore-setup-py to p4a
# "in the future" --use-setup-py is going to be the default behaviour in p4a, right now it is not
# Setting this to false will pass --ignore-setup-py, true will pass --use-setup-py
# NOTE: this is general setuptools integration, having pyproject.toml is enough, no need to generate
# setup.py if you're using Poetry, but you need to add "toml" to source.include_exts.
#p4a.setup_py = false

# (str) extra command line arguments to pass when invoking pythonforandroid.toolchain
#p4a.extra_args =

#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.12.2

# (bool) Whether or not to sign the code
ios.codesign.allowed = false

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) The development team to use for signing the debug version
#ios.codesign.development_team.debug = <hexstring>

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s

# (str) The development team to use for signing the release version
#ios.codesign.development_team.release = <hexstring>

# (str) URL pointing to .ipa file to be installed
# This option should be defined along with `display_image_url` and `full_size_image_url` options.
#ios.manifest.app_url =

# (str) URL pointing to an icon (57x57px) to be displayed during download
# This option should be defined along with `app_url` and `full_size_image_url` options.
#ios.manifest.display_image_url =

# (str) URL pointing to a large icon (512x512px) to be used by iTunes
# This option should be defined along with `app_url` and `display_image_url` options.
#ios.manifest.full_size_image_url =

[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
# build_dir = ./.buildozer

# (str) Path to build output (i.e. .apk, .aab, .ipa) storage
# bin_dir = ./bin

#-----------------------------------------------------------------------------
#   Notes about using this file:
#
#   Buildozer uses a variant of Python's ConfigSpec to read this file.
#   For the basic syntax, including interpolations, see
#       https://docs.python.org/3/library/configparser.html#supported-ini-file-structure
#
#   Warning: Comments cannot be used "inline" - i.e.
#       [app]
#       title = My Application # This is not a comment, it is part of the title.
#
#   Warning: Indented text is treated as a multiline string - i.e.
#       [app]
#       title = My Application
#          package.name = myapp # This is all part of the title.
#
#   Buildozer's .spec files have some additional features:
#
#   Buildozer supports lists - i.e.
#       [app]
#       source.include_exts = py,png,jpg
#       #                     ^ This is a list.
#
#       [app:source.include_exts]
#       py
#       png
#       jpg
#       # ^ This is an alternative syntax for a list.
#
#   Buildozer's option names are case-sensitive, unlike most .ini files.
#
#   Buildozer supports overriding options through environment variables.
#   Name an environment variable as SECTION_OPTION to override a value in a .spec
#   file.
#
#   Buildozer support overriding options through profiles.
#   For example, you want to deploy a demo version of your application without
#   HD content. You could first change the title to add "(demo)" in the name
#   and extend the excluded directories to remove the HD content.
#
#       [app@demo]
#       title = My Application (demo)
#
#       [app:source.exclude_patterns@demo]
#       images/hd/*
#
#   Then, invoke the command line with the "demo" profile:
#
#        buildozer --profile demo android debug
#
#   Environment variable overrides have priority over profile overrides.

Log

[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.
# Ensure build layout
# 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/user/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/bin/keytool
# Install platform
# Run '/usr/bin/python3 -m pip install -q --user appdirs colorama>=0.3.3 jinja2 sh>=1.10, <2.0; sys_platform!="win32" build toml packaging setuptools' ...
# Cwd None
# Apache ANT found at /home/user/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/user/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 25b
# Android NDK found at /home/user/.buildozer/android/platform/android-ndk-r25b
# Run '/usr/bin/python3 -m pythonforandroid.toolchain aab -h --color=always --storage-dir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a --ndk-api=21 --ignore-setup-py --debug' ...
# Cwd /home/user/hostcwd/.buildozer/android/platform/python-for-android
usage: toolchain.py aab [-h] [--debug] [--color {always,never,auto}]
                        [--sdk-dir SDK_DIR] [--ndk-dir NDK_DIR]
                        [--android-api ANDROID_API]
                        [--ndk-version NDK_VERSION] [--ndk-api NDK_API]
                        [--symlink-bootstrap-files]
                        [--storage-dir STORAGE_DIR] [--arch ARCH]
                        [--dist-name DIST_NAME] [--requirements REQUIREMENTS]
                        [--recipe-blacklist RECIPE_BLACKLIST]
                        [--blacklist-requirements BLACKLIST_REQUIREMENTS]
                        [--bootstrap BOOTSTRAP] [--hook HOOK] [--force-build]
                        [--no-force-build] [--require-perfect-match]
                        [--no-require-perfect-match] [--allow-replace-dist]
                        [--no-allow-replace-dist]
                        [--local-recipes LOCAL_RECIPES]
                        [--activity-class-name ACTIVITY_CLASS_NAME]
                        [--service-class-name SERVICE_CLASS_NAME]
                        [--java-build-tool {auto,ant,gradle}] [--copy-libs]
                        [--no-copy-libs] [--add-asset ASSETS]
                        [--add-resource RESOURCES] [--private PRIVATE]
                        [--use-setup-py] [--ignore-setup-py] [--release]
                        [--with-debug-symbols] [--keystore KEYSTORE]
                        [--signkey SIGNKEY] [--keystorepw KEYSTOREPW]
                        [--signkeypw SIGNKEYPW]

options:
  -h, --help            show this help message and exit
  --debug               Display debug output and all build info
  --color {always,never,auto}
                        Enable or disable color output (default enabled on
                        tty)
  --sdk-dir SDK_DIR, --sdk_dir SDK_DIR
                        The filepath where the Android SDK is installed
  --ndk-dir NDK_DIR, --ndk_dir NDK_DIR
                        The filepath where the Android NDK is installed
  --android-api ANDROID_API, --android_api ANDROID_API
                        The Android API level to build against defaults to 33
                        if not specified.
  --ndk-version NDK_VERSION, --ndk_version NDK_VERSION
                        DEPRECATED: the NDK version is now found automatically
                        or not at all.
  --ndk-api NDK_API     The Android API level to compile against. This should
                        be your *minimal supported* API, not normally the same
                        as your --android-api. Defaults to min(ANDROID_API,
                        21) if not specified.
  --symlink-bootstrap-files, --ssymlink_bootstrap_files
                        If True, symlinks the bootstrap files creation. This
                        is useful for development only, it could also cause
                        weird problems.
  --storage-dir STORAGE_DIR
                        Primary storage directory for downloads and builds
                        (default: /home/user/.local/share/python-for-android)
  --arch ARCH           The archs to build for.
  --dist-name DIST_NAME, --dist_name DIST_NAME
                        The name of the distribution to use or create
  --requirements REQUIREMENTS
                        Dependencies of your app, should be recipe names or
                        Python modules. NOT NECESSARY if you are using Python
                        3 with --use-setup-py
  --recipe-blacklist RECIPE_BLACKLIST
                        Blacklist an internal recipe from use. Allows
                        disabling Python 3 core modules to save size
  --blacklist-requirements BLACKLIST_REQUIREMENTS
                        Blacklist an internal recipe from use. Allows
                        disabling Python 3 core modules to save size
  --bootstrap BOOTSTRAP
                        The bootstrap to build with. Leave unset to choose
                        automatically.
  --hook HOOK           Filename to a module that contains python-for-android
                        hooks
  --local-recipes LOCAL_RECIPES, --local_recipes LOCAL_RECIPES
                        Directory to look for local recipes
  --activity-class-name ACTIVITY_CLASS_NAME
                        The full java class name of the main activity
  --service-class-name SERVICE_CLASS_NAME
                        Full java package name of the PythonService class
  --java-build-tool {auto,ant,gradle}
                        The java build tool to use when packaging the APK,
                        defaults to automatically selecting an appropriate
                        tool.
  --add-asset ASSETS    Put this in the assets folder in the apk.
  --add-resource RESOURCES
                        Put this in the res folder in the apk.
  --private PRIVATE     the directory with the app source code files
                        (containing your main.py entrypoint)
  --use-setup-py        Process the setup.py of a project if present.
                        (Experimental!
  --ignore-setup-py     Don't run the setup.py of a project if present. This
                        may be required if the setup.py is not designed to
                        work inside p4a (e.g. by installing dependencies that
                        won't work or aren't desired on Android
  --release             Build your app as a non-debug release build. (Disables
                        gdb debugging among other things)
  --with-debug-symbols  Will keep debug symbols from `.so` files.
  --keystore KEYSTORE   Keystore for JAR signing key, will use jarsigner
                        default if not specified (release build only)
  --signkey SIGNKEY     Key alias to sign PARSER_APK. with (release build
                        only)
  --keystorepw KEYSTOREPW
                        Password for keystore
  --signkeypw SIGNKEYPW
                        Password for key alias

  Whether to force compilation of a new distribution

  --force-build
  --no-force-build      (this is the default)
  --require-perfect-match
  --no-require-perfect-match
                        (this is the default)
  --allow-replace-dist  (this is the default)
  --no-allow-replace-dist
  --copy-libs
  --no-copy-libs        (this is the default)
[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/user/.buildozer/android/platform/android-ndk-r25b
[INFO]:    Found NDK version 25b
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[DEBUG]:   All possible dists: [<Distribution: name myapp with recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi, requests, urllib3, idna, chardet)>]
[DEBUG]:   Dist matching name and arch: []
[DEBUG]:   Dist matching ndk_api and recipe: []
[INFO]:    No existing dists meet the given requirements!
[DEBUG]:   Remove directory and subdirectory /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/test
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found a single valid recipe set: ['hostpython3', 'https://github.com/kivymd/kivymd/archive/master.zip', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name test and requirements (python3, kivy, https://github.com/kivymd/KivyMD/archive/master.zip)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    Dist will also contain modules (urllib3, requests, idna, certifi, https://github.com/kivymd/kivymd/archive/master.zip, chardet) installed from pip  
[INFO]:    Dist will be build in mode debug
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[DEBUG]:   Create directory /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/test
[INFO]:    Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]:    The requirements (certifi, chardet, https://github.com/kivymd/kivymd/archive/master.zip, idna, requests, urllib3) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython3
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/hostpython3
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz
[DEBUG]:        Python-3.11.5.tgz
[INFO]:    hostpython3 download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading libffi
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/libffi
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[DEBUG]:        v3.4.2.tar.gz
[INFO]:    libffi download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading openssl
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/openssl
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.openssl.org/source/openssl-1.1.1w.tar.gz
[DEBUG]:        openssl-1.1.1w.tar.gz
[INFO]:    openssl download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_image
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.0/SDL2_image-2.8.0.tar.gz
[DEBUG]:        SDL2_image-2.8.0.tar.gz
[INFO]:    sdl2_image download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_mixer
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.3/SDL2_mixer-2.6.3.tar.gz
[DEBUG]:        SDL2_mixer-2.6.3.tar.gz
[INFO]:    sdl2_mixer download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2_ttf
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz
[DEBUG]:        SDL2_ttf-2.20.2.tar.gz
[INFO]:    sdl2_ttf download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sqlite3
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sqlite3
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[DEBUG]:        sqlite-amalgamation-3350500.zip
[INFO]:    sqlite3 download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading python3
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/python3
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz
[DEBUG]:        Python-3.11.5.tgz
[INFO]:    python3 download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/sdl2
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL/releases/download/release-2.28.5/SDL2-2.28.5.tar.gz
[DEBUG]:        SDL2-2.28.5.tar.gz
[INFO]:    sdl2 download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading setuptools
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/setuptools
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-51.3.3.tar.gz
[DEBUG]:        setuptools-51.3.3.tar.gz
[INFO]:    setuptools download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading six
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/six
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[DEBUG]:        six-1.15.0.tar.gz
[INFO]:    six download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading pyjnius
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/pyjnius
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/kivy/pyjnius/archive/1.6.1.zip
[DEBUG]:        1.6.1.zip
[INFO]:    pyjnius download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading kivy
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/packages/kivy
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/kivy/kivy/archive/2.3.0.zip
[DEBUG]:        2.3.0.zip
[INFO]:    kivy download already cached, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    # Building all recipes for arch arm64-v8a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3 for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz
[DEBUG]:        Python-3.11.5.tgz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop
[INFO]:    hostpython3 is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking libffi for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[DEBUG]:        v3.4.2.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21
[INFO]:    libffi is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking openssl for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.openssl.org/source/openssl-1.1.1w.tar.gz
[DEBUG]:        openssl-1.1.1w.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21 
[INFO]:    openssl is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_image for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_image/releases/download/release-2.8.0/SDL2_image-2.8.0.tar.gz
[DEBUG]:        SDL2_image-2.8.0.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_mixer for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.3/SDL2_mixer-2.6.3.tar.gz
[DEBUG]:        SDL2_mixer-2.6.3.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_ttf for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.2/SDL2_ttf-2.20.2.tar.gz
[DEBUG]:        SDL2_ttf-2.20.2.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sqlite3 for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[DEBUG]:        sqlite-amalgamation-3350500.zip
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21 
[INFO]:    sqlite3 is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking python3 for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tgz
[DEBUG]:        Python-3.11.5.tgz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/python3/arm64-v8a__ndk_target_21 
[INFO]:    python3 is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2 for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/libsdl-org/SDL/releases/download/release-2.28.5/SDL2-2.28.5.tar.gz
[DEBUG]:        SDL2-2.28.5.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking setuptools for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-51.3.3.tar.gz
[DEBUG]:        setuptools-51.3.3.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/setuptools/arm64-v8a__ndk_target_21
[INFO]:    setuptools is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking six for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[DEBUG]:        six-1.15.0.tar.gz
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/six/arm64-v8a__ndk_target_21     
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking pyjnius for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/kivy/pyjnius/archive/1.6.1.zip
[DEBUG]:        1.6.1.zip
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_21
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[DEBUG]:   Remove directory and subdirectory /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running cp -a /home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/src /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android
[INFO]:    Unpacking kivy for arm64-v8a
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running basename https://github.com/kivy/kivy/archive/2.3.0.zip
[DEBUG]:        2.3.0.zip
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/kivy/arm64-v8a__ndk_target_21
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3 for arm64-v8a
[INFO]:    hostpython3 has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for hostpython3[arm64-v8a]
[INFO]:    hostpython3 already patched, skipping
[INFO]:    Prebuilding libffi for arm64-v8a
[INFO]:    libffi has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for libffi[arm64-v8a]
[INFO]:    libffi already patched, skipping
[INFO]:    Prebuilding openssl for arm64-v8a
[INFO]:    openssl has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding sdl2_image for arm64-v8a
[INFO]:    sdl2_image has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for sdl2_image[arm64-v8a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for arm64-v8a
[INFO]:    sdl2_mixer has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding sdl2_ttf for arm64-v8a
[INFO]:    sdl2_ttf has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding sqlite3 for arm64-v8a
[INFO]:    sqlite3 has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding python3 for arm64-v8a
[INFO]:    python3 has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for python3[arm64-v8a]
[INFO]:    python3 already patched, skipping
[INFO]:    Prebuilding sdl2 for arm64-v8a
[INFO]:    sdl2 has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding setuptools for arm64-v8a
[INFO]:    setuptools has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding six for arm64-v8a
[INFO]:    six has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding pyjnius for arm64-v8a
[INFO]:    pyjnius has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for pyjnius[arm64-v8a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding android for arm64-v8a
[INFO]:    android has no prebuild_arm64_v8a, skipping
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/android-sdl2/arm64-v8a__ndk_target_21/android
[INFO]:    <- directory context /home/user/hostcwd/.buildozer/android/platform/python-for-android
[INFO]:    Prebuilding kivy for arm64-v8a
[INFO]:    kivy has no prebuild_arm64_v8a, skipping
[INFO]:    Applying patches for kivy[arm64-v8a]
[INFO]:    kivy already patched, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython3 for arm64-v8a
[INFO]:    hostpython3 said it is already built, skipping
[INFO]:    Building libffi for arm64-v8a
[INFO]:    libffi said it is already built, skipping
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running cp /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/libffi/arm64-v8a__ndk_target_21/libffi/.libs/libffi.so /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/test/arm64-v8a
[INFO]:    Building openssl for arm64-v8a
[INFO]:    openssl said it is already built, skipping
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running cp /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21/openssl1.1/libcrypto1.1.so /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/openssl/arm64-v8a__ndk_target_21/openssl1.1/libssl1.1.so /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/libs_collections/test/arm64-v8a
[INFO]:    Building sdl2_image for arm64-v8a
[INFO]:    Building sdl2_mixer for arm64-v8a
[INFO]:    Building sdl2_ttf for arm64-v8a
[INFO]:    Building sqlite3 for arm64-v8a
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3
stty: 'standard input': Inappropriate ioctl for device
[DEBUG]:   -> running ndk-build V=1 NDK_DEBUG=1 APP_PLATFORM=android-21 APP_ABI=arm64-v8a
[DEBUG]:        rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/libs/arm64-v8a/*
[DEBUG]:        [arm64-v8a] Compile        : sqlite3 <= sqlite3.c
[DEBUG]:        rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
[DEBUG]:        /usr/bin/ccache /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o.d -target aarch64-none-linux-android21 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes  --sysroot /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument  -D_FORTIFY_SOURCE=2 -fpic -O0 -UNDEBUG -fno-limit-debug-info  -I/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/..   -DANDROID -DSQLITE_ENABLE_FTS4 -D_FILE_OFFSET_BITS=32 -DSQLITE_ENABLE_JSON1 -Wformat -Werror=format-security  -c  /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/../sqlite3.c -o /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
[DEBUG]:        ccache: error: execute_noreturn of /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang failed: Exec format error
[DEBUG]:        make: *** [/home/user/.buildozer/android/platform/android-ndk-r25b/build/core/build-binary.mk:422: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o] Error 1
Exception in thread background thread for pid 279:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 1641, in wrap
    fn(*rgs, **kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 2269, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /home/user/.buildozer/android/platform/android-ndk-r25b/ndk-build V=1 NDK_DEBUG=1 APP_PLATFORM=android-21 APP_ABI=arm64-v8a

  STDOUT:
rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/libs/arm64-v8a/*  
[arm64-v8a] Compile        : sqlite3 <= sqlite3.c
rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
/usr/bin/ccache /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o.d -target aarch64-none-linux-android21 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes  --sysroot /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument  -D_FORTIFY_SOURCE=2 -fpic -O0 -UNDEBUG -fno-limit-debug-info  -I/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/..   -DANDROID -DSQLITE_ENABLE_FTS4 -D_FILE_OFFSET_BITS=32 -DSQLITE_ENABLE_JSON1 -Wformat -Werror=format-security  -c  /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/../sqlite3.c -o /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
ccache: error: execute_noreturn of /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang failed: Exec format error
make: *** [/home/user/.buildozer/android/platform/android-ndk-r25b/build/core/build-binary.mk:422: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o] Error 1

  STDERR:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module>
    main()
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 685, in __init__
    getattr(self, command)(args)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes
    recipe.build_arch(arch)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/sqlite3/__init__.py", line 25, in build_arch
    super().build_arch(arch)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 792, in build_arch
    shprint(
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
    for line in output:
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 915, in next
    self.wait()
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 845, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/user/.local/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /home/user/.buildozer/android/platform/android-ndk-r25b/ndk-build V=1 NDK_DEBUG=1 APP_PLATFORM=android-21 APP_ABI=arm64-v8a

  STDOUT:
rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/libs/arm64-v8a/*  
[arm64-v8a] Compile        : sqlite3 <= sqlite3.c
rm -f /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
/usr/bin/ccache /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o.d -target aarch64-none-linux-android21 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes  --sysroot /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument  -D_FORTIFY_SOURCE=2 -fpic -O0 -UNDEBUG -fno-limit-debug-info  -I/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/..   -DANDROID -DSQLITE_ENABLE_FTS4 -D_FILE_OFFSET_BITS=32 -DSQLITE_ENABLE_JSON1 -Wformat -Werror=format-security  -c  /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/jni/../sqlite3.c -o /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o
ccache: error: execute_noreturn of /home/user/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang failed: Exec format error
make: *** [/home/user/.buildozer/android/platform/android-ndk-r25b/build/core/build-binary.mk:422: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/sqlite3/arm64-v8a__ndk_target_21/sqlite3/obj/local/arm64-v8a/objs-debug/sqlite3/sqlite3.o] Error 1

  STDERR:

# Check application requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=test --bootstrap=sdl2 --requirements=python3,kivy,https://github.com/kivymd/KivyMD/archive/master.zip --arch=arm64-v8a --arch=armeabi-v7a --copy-libs --color=always --storage-dir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a --ndk-api=21 --ignore-setup-py --debug' ...
# Cwd /home/user/hostcwd/.buildozer/android/platform/python-for-android
# Command failed: ('/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=test', '--bootstrap=sdl2', '--requirements=python3,kivy,https://github.com/kivymd/KivyMD/archive/master.zip', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug')
# Error code: 1
# ENVIRONMENT:
#     PATH = '/home/user/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'  
#     HOSTNAME = '621ef44cd541'
#     USER = 'user'
#     HOME_DIR = '/home/user'
#     WORK_DIR = '/home/user/hostcwd'
#     SRC_DIR = '/home/user/src'
#     LANG = 'en_US.UTF-8'
#     LANGUAGE = 'en_US.UTF-8'
#     LC_ALL = 'en_US.UTF-8'
#     HOME = '/home/user'
#     PACKAGES_PATH = '/home/user/.buildozer/android/packages'
#     ANDROIDSDK = '/home/user/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/user/.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
WangZhongDian commented 4 months ago

I have tried many times, just building a simple kivymd "hello world"

RobertFlatt commented 2 months ago

stty: 'standard input': Inappropriate ioctl for device

Perhaps you are running Buildozer on a remote machine using ssh? This might be the expected behavior of ssh, perhaps try ssh -t