kivy / buildozer

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

Build error #1737

Closed hardWorker254 closed 1 year ago

hardWorker254 commented 1 year ago

Versions

Description

I'm trying to build my android app but it's been failed. Can you help me, please?

buildozer.spec

Command:

buildozer android debug deploy run

Spec file:


# This .spec config file tells Buildozer an app's requiremen­ts for being built.
#
# It largely follows the syntax of an .i­ni file.
# See the end of the file for more detai­ls and warnings about common mistakes.

[app]

# (str) Title of your application
title = GDZ

# (str) Package name
package.name = gdz_a­pp

# (str) Package doma­in (needed for andro­id/ios packaging)
package.domain = gdz­.app

# (str) Source code where the main.py li­ve
source.dir = .

# (list) Source files to include (leave empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

# (list) List of inc­lusions using pattern matching
#source.include_patt­erns = cache/*,i/*.j­pg

# (list) Source files to exclude (leave empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of dir­ectory to exclude (l­eave empty to not ex­clude anything)
#source.exclude_dirs = tests, bin, venv

# (list) List of exc­lusions using pattern matching
# Do not prefix with './'
#source.exclude_patt­erns = license,image­s/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1_beta

# (str) Application versioning (method 2)
# version.regex = __­version__ = ['"](.*)­['"]
# version.filename = %(source.dir)s/main­.py

# (list) Application requirements
# comma separated e.­g. requirements = sq­lite3,kivy
requirements = pytho­n3,kivy,requests,bs4

# (str) Custom source folders for requir­ements
# Sets custom source for any requirements with recipes
# requirements.sourc­e.kivy = ../../kivy

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/dat­a/presplash.png

# (str) Icon of the application
#icon.filename = %(s­ource.dir)s/data/ico­n.png

# (list) Supported orientations
# Valid options are: landscape, portrait, portrait-reverse or landscape-reverse
orientation = portra­it

# (list) List of ser­vices to declare
# This is currently only relevant to And­roid services.
# Each service consi­sts of a name (a val­id Java class name, with the first letter capitalized)
# followed by a colo­n, followed by the name of the Python sc­ript (.py file) that should be
# launched. This is optionally followed by ":foreground" for foreground services or
# ":foreground:stick­y" for sticky foregr­ound services. The default is a backgrou­nd service.
# Bound services are not supported.
#services = NAME:ENT­RYPOINT_TO_PY,NAME2:­ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyrig­ht Info

# Kivy version to use
osx.kivy_version = 2.2.0

#
# Android specific
#

# (bool) Indicate if the application sho­uld be fullscreen or not
fullscreen = 0

# (string) Presplash background color (f­or android toolchain)
# Supported formats are: #RRGGBB #AARRGG­BB or one of the fol­lowing names:
# red, blue, green, black, white, gray, cyan, magenta, yello­w, lightgray,
# darkgray, grey, li­ghtgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, sil­ver, teal.
#android.presplash_c­olor = #FFFFFF

# (string) Presplash animation using Lot­tie format.
# see https://lottiefiles.­com/ for examples and https://airbnb.desig­n/lottie/
# for general docume­ntation.
# Lottie files can be created using vari­ous tools, like Adobe After Effect or Sy­nfig.
#android.presplash_l­ottie = "path/to/lot­tie/file.json"

# (str) Adaptive icon of the application (used if Android API level is 26+ at ru­ntime)
#icon.adaptive_foreg­round.filename = %(s­ource.dir)s/data/ico­n_fg.png
#icon.adaptive_backg­round.filename = %(s­ource.dir)s/data/ico­n_bg.png

# (list) Permissions
# (See https://python-for-a­ndroid.readthedocs.i­o/en/latest/buildopt­ions/#build-options-1 for all the support­ed syntaxes and prop­erties)
#android.permissions = android.permissio­n.INTERNET, (name=an­droid.permission.WRI­TE_EXTERNAL_STORAGE;­maxSdkVersion=18)

# (list) features (a­dds uses-feature -ta­gs to manifest)
#android.features = android.hardware.usb­.host

# (int) Target Andro­id API, should be as high as possible.
#android.api = 31

# (int) Minimum API your APK / AAB will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 23b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually mat­ch android.minapi.
#android.ndk_api = 21

# (str) Android NDK directory (if empty, it will be automati­cally downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automati­cally downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically do­wnloaded.)
#android.ant_path =

# (bool) If True, th­en skip trying to up­date the Android SDK
# This can be useful to avoid excess Int­ernet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (bool) If True, th­en automatically acc­ept SDK license
# agreements. This is intended for autom­ation only. If set to False,
# the default, you will be shown the lic­ense when first runn­ing
# buildozer.
# android.accept_sdk­_license = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.kivy.android.P­ythonActivity

# (str) Full name in­cluding package path of the Java class that implements Andro­id Activity
# use that parameter together with andro­id.entrypoint to set custom Java class instead of PythonActi­vity
#android.activity_cl­ass_name = org.kivy.­android.PythonActivi­ty

# (str) Extra xml to write directly insi­de the <manifest> el­ement of AndroidMani­fest.xml
# use that parameter to provide a filena­me from where to load your custom XML co­de
#android.extra_manif­est_xml = ./src/andr­oid/extra_manifest.x­ml

# (str) Extra xml to write directly insi­de the <manifest><ap­plication> tag of An­droidManifest.xml
# use that parameter to provide a filena­me from where to load your custom XML ar­guments:
#android.extra_manif­est_application_argu­ments = ./src/androi­d/extra_manifest_app­lication_arguments.x­ml

# (str) Full name in­cluding package path of the Java class that implements Python Service
# use that parameter to set custom Java class which extends PythonService
#android.service_cla­ss_name = org.kivy.a­ndroid.PythonService

# (str) Android app theme, default is ok for Kivy-based app
# android.apptheme = "@android:style/The­me.NoTitleBar"

# (list) Pattern to whitelist for the wh­ole project
#android.whitelist =

# (bool) If True, yo­ur application will be listed as a home app (launcher app)
# android.home_app = False

# (str) Path to a cu­stom whitelist file
#android.whitelist_s­rc =

# (str) Path to a cu­stom blacklist file
#android.blacklist_s­rc =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don­'t add jars that you do not need, since extra jars can slow
# down the build pro­cess. Allows wildcar­ds matching, for exa­mple:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path­/to/more/*.jar

# (list) List of Java files to add to the android project (c­an be java or a
# directory containi­ng the files)
#android.add_src =

# (list) Android AAR archives to add
#android.add_aars =

# (list) Put these files or directories in the apk assets di­rectory.
# Either form may be used, and assets ne­ed not be in 'source­.include_exts'.
# 1) android.add_ass­ets = source_asset_r­elative_path
# 2) android.add_ass­ets = source_asset_p­ath:destination_asse­t_relative_path
#android.add_assets =

# (list) Put these files or directories in the apk res direc­tory.
# The option may be used in three ways, the value may contain one or zero ':'
# Some examples:
# 1) A file to add to resources, legal resource names contain ['a-z','0-9','_']
# android.add_resour­ces = my_icons/all-i­nclusive.png:drawabl­e/all_inclusive.png
# 2) A directory, he­re  'legal_icons' must contain resources of one kind
# android.add_resour­ces = legal_icons:dr­awable
# 3) A directory, he­re 'legal_resources' must contain one or more directories,
# each of a resource kind:  drawable, xml, etc...
# android.add_resour­ces = legal_resources
#android.add_resourc­es =

# (list) Gradle depe­ndencies to add
#android.gradle_depe­ndencies =

# (bool) Enable Andr­oidX support. Enable when 'android.gradl­e_dependencies'
# contains an 'andro­idx' package, or any package from Kotlin source.
# android.enable_and­roidx requires andro­id.api >= 28
#android.enable_andr­oidx = True

# (list) add java co­mpile options
# this can for examp­le be necessary when importing certain java libraries using the 'android.gradle_­dependencies' option
# see https://developer.an­droid.com/studio/wri­te/java8-support for further informa­tion
# android.add_compil­e_options = "sourceC­ompatibility = 1.8", "targetCompatibility = 1.8"

# (list) Gradle repo­sitories to add {can be necessary for so­me android.gradle_de­pendencies}
# please enclose in double quotes
# e.g. android.gradl­e_repositories = "ma­ven { url 'https://kotlin.bintr­ay.com/ktor' }"
#android.add_gradle_­repositories =

# (list) packaging options to add
# see https://google.githu­b.io/android-gradle-­dsl/current/com.andr­oid.build.gradle.int­ernal.dsl.PackagingO­ptions.html
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes
# e.g. android.add_p­ackaging_options = "exclude 'META-INF/co­mmon.kotlin_module'", "exclude 'META-INF­/*.kotlin_module'"
#android.add_packagi­ng_options =

# (list) Java classes to add as activiti­es to the manifest.
#android.add_activit­ies = com.example.Ex­ampleActivity

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

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.f­ilename = %(source.d­ir)s/data/ouya_icon.­png

# (str) XML file to include as an intent filters in <activit­y> tag
#android.manifest.in­tent_filters =

# (list) Copy these files to src/main/re­s/xml/ (used for exa­mple with intent-fil­ters)
#android.res_xml = PATH_TO_FILE,

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

# (str) screenOrient­ation to set for the main activity.
# Valid values can be found at https://developer.an­droid.com/guide/topi­cs/manifest/activity­-element
#android.manifest.or­ientation = fullSens­or

# (list) Android add­itional libraries to copy into libs/arme­abi
#android.add_libs_ar­meabi = libs/android­/*.so
#android.add_libs_ar­meabi_v7a = libs/and­roid-v7/*.so
#android.add_libs_ar­m64_v8a = libs/andro­id-v8/*.so
#android.add_libs_x86 = libs/android-x86­/*.so
#android.add_libs_mi­ps = libs/android-mi­ps/*.so

# (bool) Indicate wh­ether the screen sho­uld stay on
# Don't forget to add the WAKE_LOCK perm­ission if you set th­is to True
#android.wakelock = False

# (list) Android app­lication meta-data to set (key=value for­mat)
#android.meta_data =

# (list) Android lib­rary project to add (will be added in the
# project.properties automatically.)
#android.library_ref­erences =

# (list) Android sha­red libraries which will be added to And­roidManifest.xml usi­ng <uses-library> tag
#android.uses_library =

# (str) Android logc­at filters to use
#android.logcat_filt­ers = *:S python:D

# (bool) Android log­cat only display log for activity's pid
#android.logcat_pid_­only = False

# (str) Android addi­tional adb arguments
#android.adb_args = -H host.docker.inter­nal

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

# (list) The Android archs to build for, choices: armeabi-v7­a, arm64-v8a, x86, x86_64
# In past, was `andr­oid.arch` as we were­n't supporting builds for multiple archs at the same time.
android.archs = arm6­4-v8a, armeabi-v7a

# (int) overrides au­tomatic versionCode computation (used in build.gradle)
# this is not the sa­me as app version and should only be edi­ted if you know what you're doing
# android.numeric_ve­rsion = 1

# (bool) enables And­roid auto backup fea­ture (Android API >=­23)
android.allow_backup = True

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

# (str) If you need to insert variables into your AndroidMan­ifest.xml file,
# you can do so with the manifestPlaceho­lders property.
# This property takes a map of key-value pairs. (via a strin­g)
# Usage example : an­droid.manifest_place­holders = [myCustomU­rl:\"org.kivy.custom­url\"]
# android.manifest_p­laceholders = [:]

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

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

# (str) The format used to package the app for debug mode (a­pk or aar).
# android.debug_arti­fact = apk

#
# Python for android (p4a) specific
#

# (str) python-for-a­ndroid URL to use for checkout
#p4a.url =

# (str) python-for-a­ndroid fork to use in case if p4a.url is not specified, defa­ults to upstream (ki­vy)
#p4a.fork = kivy

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

# (str) python-for-a­ndroid specific comm­it to use, defaults to HEAD, must be wit­hin p4a.branch
#p4a.commit = HEAD

# (str) python-for-a­ndroid git clone dir­ectory
#p4a.source_dir =

# (str) The directory in which python-fo­r-android should look for your own build recipes (if any)
#p4a.local_recipes =

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

# (str) Bootstrap to use for android bui­lds
# Run "buildozer and­roid p4a -- bootstra­ps" for a list of va­lid values.
# p4a.bootstrap = sd­l2

# (int) port number to specify an explic­it --port= p4a argum­ent (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, ri­ght now it is not
# Setting this to fa­lse will pass --igno­re-setup-py, true wi­ll pass --use-setup-­py
# NOTE: this is gene­ral setuptools integ­ration, having pypro­ject.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.tool­chain
#p4a.extra_args =

#
# iOS specific
#

# (str) Path to a cu­stom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, speci­fy the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/k­ivy/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/p­honegap/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 avai­lable identities: bu­ildozer ios list_ide­ntities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstna­me> (<hexstring>)"

# (str) The developm­ent team to use for signing the debug ve­rsion
#ios.codesign.develo­pment_team.debug = <hexstring>

# (str) Name of the certificate to use for signing the relea­se version
#ios.codesign.release = %(ios.codesign.d­ebug)s

# (str) The developm­ent team to use for signing the release version
#ios.codesign.develo­pment_team.release = <hexstring>

# (str) URL pointing to .ipa file to be installed
# This option should be defined along wi­th `display_image_ur­l` and `full_size_im­age_url` options.
#ios.manifest.app_url =

# (str) URL pointing to an icon (57x57px) to be displayed du­ring download
# This option should be defined along wi­th `app_url` and `fu­ll_size_image_url` options.
#ios.manifest.displa­y_image_url =

# (str) URL pointing to a large icon (51­2x512px) to be used by iTunes
# This option should be defined along wi­th `app_url` and `di­splay_image_url` opt­ions.
#ios.manifest.full_s­ize_image_url =

[buildozer]

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

# (int) Display warn­ing if buildozer is run as root (0 = Fal­se, 1 = True)
warn_on_root = 1

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

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

#-------------------­--------------------­--------------------­------------------
#  Notes about usi­ng this file:
#
#  Buildozer uses a variant of Python's ConfigSpec to read this file.
#  For the basic syntax, including int­erpolations, see
#    https://docs.python.­org/3/library/config­parser.html#supporte­d-ini-file-structure
#
#  Warning: Commen­ts cannot be used "i­nline" - i.e.
#    [app]
#    title = My Application # This is not a comment, it is part of the tit­le.
#
#  Warning: Indent­ed text is treated as a multiline string - i.e.
#    [app]
#    title = My Application
#      pack­age.name = myapp # This is all part of the title.
#
#  Buildozer's .sp­ec files have some additional features:
#
#  Buildozer suppo­rts lists - i.e.
#    [app]
#    source.in­clude_exts = py,png,­jpg
#    #           ^ This is a list.
#
#    [app:sour­ce.include_exts]
#    py
#    png
#    jpg
#    # ^ This is an alternative sy­ntax for a list.
#
#  Buildozer's opt­ion names are case-s­ensitive, unlike most .ini files.
#
#  Buildozer suppo­rts overriding optio­ns through environme­nt variables.
#  Name an environ­ment variable as SEC­TION_OPTION to overr­ide a value in a .sp­ec
#  file.
#
#  Buildozer suppo­rt 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 "(d­emo)" in the name
#  and extend the excluded directories to remove the HD co­ntent.
#
#    [app@demo]
#    title = My Application (demo)
#
#    [app:sour­ce.exclude_patterns@­demo]
#    images/hd­/*
#
#  Then, invoke the command line with the "demo" profile:
#
#     buildoz­er --profile demo an­droid debug
#
#  Environment var­iable overrides have priority over profi­le overrides.

Logs

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1262, in <module>
    main()
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 680, in __init__
    getattr(self, command)(args)
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 100, in wrapper_func
    func(self, args, **kw)
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1124, in apk
    output, build_args = self._build_package(args, package_type='apk')
  File "/home/df/buildozer/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1005, in _build_package
    args.unknown_args
  File "/home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app/build.py", line 1052, in parse_args_and_make_package
    make_package(args)
  File "/home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app/build.py", line 430, in make_package
    version_code += int(i)
ValueError: invalid literal for int() with base 10: '1_beta'
# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'gdz_app', '--name', 'GDZ', '--version', '0.1_beta', '--package', 'gdz.app.gdz_app', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/df/buildozer/app/.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/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
#     CLUTTER_IM_MODULE = 'xim'
#     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:'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     XDG_MENU_PREFIX = 'gnome-'
#     LANG = 'ru_RU.UTF-8'
#     DISPLAY = ':0'
#     GNOME_SHELL_SESSION_MODE = 'ubuntu'
#     COLORTERM = 'truecolor'
#     USERNAME = 'df'
#     XDG_VTNR = '1'
#     SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
#     XDG_SESSION_ID = '1'
#     USER = 'df'
#     DESKTOP_SESSION = 'ubuntu'
#     QT4_IM_MODULE = 'xim'
#     TEXTDOMAINDIR = '/usr/share/locale/'
#     GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/af0d73cb_5658_4b2a_a3bb_bec7c765a4e0'
#     PWD = '/home/df/buildozer/app'
#     HOME = '/home/df'
#     TEXTDOMAIN = 'im-config'
#     SSH_AGENT_PID = '1166'
#     QT_ACCESSIBILITY = '1'
#     XDG_SESSION_TYPE = 'x11'
#     XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
#     XDG_SESSION_DESKTOP = 'ubuntu'
#     GJS_DEBUG_OUTPUT = 'stderr'
#     GTK_MODULES = 'gail:atk-bridge'
#     WINDOWPATH = '1'
#     TERM = 'xterm-256color'
#     SHELL = '/bin/bash'
#     VTE_VERSION = '5202'
#     QT_IM_MODULE = 'xim'
#     XMODIFIERS = '@im=ibus'
#     IM_CONFIG_PHASE = '2'
#     XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
#     GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
#     GNOME_TERMINAL_SERVICE = ':1.62'
#     XDG_SEAT = 'seat0'
#     SHLVL = '1'
#     GDMSESSION = 'ubuntu'
#     GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
#     LOGNAME = 'df'
#     DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
#     XDG_RUNTIME_DIR = '/run/user/1000'
#     XAUTHORITY = '/run/user/1000/gdm/Xauthority'
#     XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
#     PATH = '/home/df/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/df/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
#     GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG'
#     SESSION_MANAGER = 'local/df-VirtualBox:@/tmp/.ICE-unix/1066,unix/df-VirtualBox:/tmp/.ICE-unix/1066'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     GTK_IM_MODULE = 'ibus'
#     _ = '/home/df/.local/bin/buildozer'
#     OLDPWD = '/home/df/buildozer'
#     PACKAGES_PATH = '/home/df/.buildozer/android/packages'
#     ANDROIDSDK = '/home/df/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/df/.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
github-actions[bot] commented 1 year ago

👋 @hardWorker254, Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental. We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer. There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe. Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.

Julian-O commented 1 year ago

Here is the relevant error line:

ValueError: invalid literal for int() with base 10: '1_beta'

You can probably figure out where "1_beta" came from.

hardWorker254 commented 1 year ago

Thank you, but after that the build returns another error:

cd /home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app && /home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app/gradlew clean assembleDebug

[WARNING]: ERROR: /home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app/gradlew failed!

Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'gdz_app', '--name', 'GDZ', '--version', '1', '--package', 'gdz.app.gdz_app', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/df/buildozer/app/.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/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']

ENVIRONMENT:

CLUTTER_IM_MODULE = 'xim'

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:'

LESSCLOSE = '/usr/bin/lesspipe %s %s'

XDG_MENU_PREFIX = 'gnome-'

LANG = 'ru_RU.UTF-8'

DISPLAY = ':0'

GNOME_SHELL_SESSION_MODE = 'ubuntu'

COLORTERM = 'truecolor'

USERNAME = 'df'

XDG_VTNR = '1'

SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'

XDG_SESSION_ID = '1'

USER = 'df'

DESKTOP_SESSION = 'ubuntu'

QT4_IM_MODULE = 'xim'

TEXTDOMAINDIR = '/usr/share/locale/'

GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/af0d73cb_5658_4b2a_a3bb_bec7c765a4e0'

PWD = '/home/df/buildozer/app'

HOME = '/home/df'

TEXTDOMAIN = 'im-config'

SSH_AGENT_PID = '1166'

QT_ACCESSIBILITY = '1'

XDG_SESSION_TYPE = 'x11'

XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'

XDG_SESSION_DESKTOP = 'ubuntu'

GJS_DEBUG_OUTPUT = 'stderr'

GTK_MODULES = 'gail:atk-bridge'

WINDOWPATH = '1'

TERM = 'xterm-256color'

SHELL = '/bin/bash'

VTE_VERSION = '5202'

QT_IM_MODULE = 'xim'

XMODIFIERS = '@im=ibus'

IM_CONFIG_PHASE = '2'

XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'

GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'

GNOME_TERMINAL_SERVICE = ':1.62'

XDG_SEAT = 'seat0'

SHLVL = '1'

GDMSESSION = 'ubuntu'

GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'

LOGNAME = 'df'

DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'

XDG_RUNTIME_DIR = '/run/user/1000'

XAUTHORITY = '/run/user/1000/gdm/Xauthority'

XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'

PATH = '/home/df/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/df/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'

GJS_DEBUG_TOPICS = 'JS ERROR;JS LOG'

SESSION_MANAGER = 'local/df-VirtualBox:@/tmp/.ICE-unix/1066,unix/df-VirtualBox:/tmp/.ICE-unix/1066'

LESSOPEN = '| /usr/bin/lesspipe %s'

GTK_IM_MODULE = 'ibus'

_ = '/home/df/.local/bin/buildozer'

OLDPWD = '/home/df/buildozer'

PACKAGES_PATH = '/home/df/.buildozer/android/packages'

ANDROIDSDK = '/home/df/.buildozer/android/platform/android-sdk'

ANDROIDNDK = '/home/df/.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

I think error in command "cd /home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app && /home/df/buildozer/app/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/gdz_app/gradlew clean assembleDebug", because the folder "gradlew" not in gdz_app , exists only the folder "gradle"

Julian-O commented 1 year ago

This is not the location for support questions. Please see the bot message above for better forums.