- Не могу скомпилировать apk файл через buildozer
- I am new to python and buildozer, using buildozer to compile my first android app, #124
- Comments
- tusharyadav commented Jun 23, 2014
- inclement commented Jun 23, 2014
- JulianVolodia commented Jun 1, 2016
- inclement commented Jun 1, 2016
- ihavenonickname commented Aug 9, 2017
- inclement commented Aug 9, 2017
- abulojoshua1 commented Jan 29, 2018
- AnkitMArtin commented Feb 17, 2018
- inclement commented Feb 17, 2018 •
- Spidy20 commented Nov 30, 2020
- RotonEvan commented Dec 1, 2020
- Spidy20 commented Dec 1, 2020
- SnehaGupta0123 commented Jul 24, 2021
- MariyaSha commented Nov 30, 2021
- Python bulldozer unknown command target android
- About
- Как решить ошибку при создании apk с помощью buildozer?
Не могу скомпилировать apk файл через buildozer
Ошибка при создании apk kivy buildozer
У меня появляется какая-то непонятная ошибка с buildozer’а и я не знаю, что делать. Помогите.
Как скомпилировать Android-Приложение (получить APK-файл)
Осваиваю создание Android-Приложений на Delphi XE5. Сделал «Hello World!», но не могу понять как.
Не могу подписать APK файл
Помогите, пожалуйста. Не могу подписать APK файл из-за ошибки: Description Resource Path.
Не могу собрать приложение в Buildozer
Не могу собрать приложение в buildozer. Приложение полностью исправно работает. Помогите.
Не могу скомпилировать файл.
Всем привет. Есть друг ему нужно помочь, у него есть прога исходники которой потеряны, и.
как скомпилировать apk
Здравствуйте. третьи сутки бъюсь 🙁 над студио. Встала необходимость мобильного приложения под.
Как скомпилировать Apk
Здравствуйте, не могу запустить эмулятор, грузится долго (я и не дождался). Может из-за того что у.
Скомпилировать apk в Android Studio
У меня есть проект, который я разрабатывал в Visual Studio. Сейчас мне надо создать апк файл для.
Как java код скомпилировать в apk?
Здравствуйте , интересует вариант компиляции java кода , под андроид .У меня стоит 3 ide .
Источник
I am new to python and buildozer, using buildozer to compile my first android app, #124
Comments
tusharyadav commented Jun 23, 2014
I am new to python and buildozer, using buildozer to compile my first android app using python 3.4 and buildozer version 0.16, so on compiling it is showing -)
I check configration tokens
Unknown command/target android.
The text was updated successfully, but these errors were encountered:
inclement commented Jun 23, 2014
This issue is empty, I guess you did something wrong? Either way, you should post about your problem (include the full buildozer output log) on the kivy mailing list at https://groups.google.com/forum/#!forum/kivy-users
JulianVolodia commented Jun 1, 2016
python-for-android still not work on Windows? 🙂
inclement commented Jun 1, 2016
Yes, python-for-android still does not work on Windows.
On 01/06/16 03:04, Volodia wrote:
python-for-android still not work on Windows? 🙂
ihavenonickname commented Aug 9, 2017
I created the app from this tutorial. It works fine on desktop. The following command:
opens a new window and the game runs.
Unfortunately, when I try to run it on my Android device:
I see a slightly different output from the one described by OP:
I used this tutorial to set up Buildolzer.
I am working on Windows 10 with CPython 3.6.
inclement commented Aug 9, 2017
@ihavenonickname Post the full log and description of the problem on the kivy-users mailing list
abulojoshua1 commented Jan 29, 2018
I’ve failed to build an apk using buildozer.. i get an issue saying something like «failed to execute last command. «, i searched the Internet and tried all solutions people provided but all in vain. am using ubuntu 16.04. having cython 0.27.3, Buildozer 0.34 and kivy 1.10.0.
any help please!
AnkitMArtin commented Feb 17, 2018
I am getting this error while running the command
C:\Users\ankit\Desktop\test>buildozer android debug
Traceback (most recent call last):
File «C:\Program Files\Python36\Scripts\buildozer-script.py», line 11, in
load_entry_point(‘buildozer’, ‘console_scripts’, ‘buildozer’)()
File «c:\users\ankit\buildozer\buildozer\scripts\client.py», line 13, in main
Buildozer().run_command(sys.argv[1:])
File «c:\users\ankit\buildozer\buildozer_init_.py», line 122, in init
self.config.read(filename)
File «c:\program files\python36\lib\configparser.py», line 696, in read
self._read(fp, filename)
File «c:\program files\python36\lib\configparser.py», line 1077, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: ‘buildozer.spec’, line: 1
‘[app]\n’
inclement commented Feb 17, 2018 •
@AnkitMArtin buildozer does not support windows. It probably shouldn’t actually crash, although the reason for this seems to be a corrupted buildozer.spec, it isn’t clear if buildozer is at fault. However, even if you fix this, you wouldn’t be able to build an APK this way.
Spidy20 commented Nov 30, 2020
If you are using windows, it will not work there, try to use Google Colab for it.
RotonEvan commented Dec 1, 2020
If you are using windows, it will not work there, try to use Google Colab for it.
Can you please elaborate a bit more on how would I build by app on Google Colab?
Thanks in advance ! 🙂
Spidy20 commented Dec 1, 2020
Hello, please create your kivy app on a local machine, then go to colab upload it, follow the same procedure as mentioned in the documentation of buildozer. Colab uses Linux so you can use bulldozer there, recently I made one calc app using colab.
SnehaGupta0123 commented Jul 24, 2021
I made my app with google colab and the apk is also created but when I open in phone the app opens and closes its just not working for me.
Any suggestions please.
MariyaSha commented Nov 30, 2021
If anyone is struggling with using Buildozer on Windows, I’ve filmed a step by step tutorial about it a while back (using WSL):
https://youtu.be/VsTaM057rdc
@SnehaGupta0123 your app is probably crushing because of discrepancies in the buildozer.spec requirements section.
- Make sure you specify the versions of the libraries you’re using, for example:
requirements = python3, kivy==2.0.0, kivymd==0.104.1 - If you include images inside your application — you also need to require «pillow» (even if you don’t import it inside your Python file) so then:
requirements = python3, kivy==2.0.0, kivymd==0.104.1, pillow
This solved the crashing issues for me and I hope it helps you too! good luck! 🙂
Источник
Python bulldozer unknown command target android
Buildozer is a tool for creating application packages easily.
The goal is to have one «buildozer.spec» file in your app directory, describing your application requirements and settings such as title, icon, included modules etc. Buildozer will use that spec to create a package for Android, iOS, Windows, OSX and/or Linux.
Buildozer currently supports packaging for Android via the python-for-android project, and for iOS via the kivy-ios project. iOS and OSX are still under work.
For Android, buildozer will automatically download and prepare the build dependencies. For more information, see Android-SDK-NDK-Information. Note that only Python 3 is supported.
Note that this tool has nothing to do with the eponymous online build service buildozer.io.
Installing Buildozer with target Python 3 (default):
Check buildozer is in your path
Go into your application directory and run:
Buildozer Docker image
A Dockerfile is available to use buildozer through a Docker environment.
Buildozer GitHub action
Use ArtemSBulgakov/buildozer-action@v1 to build your packages automatically on push or pull request. See full workflow example.
Examples of Buildozer commands
See buildozer/default.spec for an up-to-date spec file.
You can override the value of any buildozer.spec config token by setting an appropriate environment variable. These are all of the form $SECTION_TOKEN , where SECTION is the config file section and TOKEN is the config token to override. Dots are replaced by underscores.
For example, here are some config tokens from the [app] section of the config, along with the environment variables that would override them.
- title -> $APP_TITLE
- package.name -> $APP_PACKAGE_NAME
- p4a.source_dir -> $APP_P4A_SOURCE_DIR
If you need assistance, you can ask for help on our mailing list:
For debugging on Android, don’t hesitate to use ADB to get logs of your application.
We love pull requests and discussing novel ideas. Check out our contribution guide and feel free to improve buildozer.
The following mailing list and IRC channel are used exclusively for discussions about developing the Kivy framework and its sister projects:
We also have a Discord channel:
Buildozer is released under the terms of the MIT License. Please refer to the LICENSE file.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
About
Generic Python packager for Android and iOS
Источник
Как решить ошибку при создании apk с помощью buildozer?
# Android packages installation done.
# Check application requirements
# Check garden requirements
# Compile platform
# Build the application #1
# Package the application
# Gradle project detected, copy files /home/kivy/Hello/.buildozer/android/platform/build/dists/myapp/src/main/java
Traceback (most recent call last):
File «/usr/local/bin/buildozer», line 11, in
load_entry_point(‘buildozer==0.34’, ‘console_scripts’, ‘buildozer’)()
File «/usr/local/lib/python2.7/dist-packages/buildozer/scripts/client.py», line 13, in main
Buildozer().run_command(sys.argv[1:])
File «/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py», line 1058, in run_command
self.target.run_commands(args)
File «/usr/local/lib/python2.7/dist-packages/buildozer/target.py», line 92, in run_commands
func(args)
File «/usr/local/lib/python2.7/dist-packages/buildozer/target.py», line 104, in cmd_debug
self.buildozer.build()
File «/usr/local/lib/python2.7/dist-packages/buildozer/__init__.py», line 212, in build
self.target.build_package()
File «/usr/local/lib/python2.7/dist-packages/buildozer/targets/android.py», line 817, in build_package
copyfile(join(apk_dir, apk), join(self.buildozer.bin_dir, apk_dest))
File «/usr/lib/python2.7/shutil.py», line 82, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: u’/home/kivy/Hello/.buildozer/android/platform/build/dists/myapp/build/outputs/apk/myapp-debug.apk’
# (str) Title of your application
title = My Application
# (str) Package name
# (str) Package domain (needed for android/ios packaging)
# (str) Source code where the main.py live
# (list) Source files to include (let empty to include all the files)
# (list) List of inclusions using pattern matching
# (list) Source files to exclude (let empty to not exclude anything)
# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin
# (list) List of exclusions using pattern matching
# (str) Application versioning (method 1)
# (str) Application versioning (method 2)
# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# (list) Garden requirements
# (str) Presplash of the application
# (str) Icon of the application
# (str) Supported orientation (one of landscape, portrait or all)
# (list) List of service to declare
# author = © Copyright Info
# change the major version of python used by the app
# Kivy version to use
# (bool) Indicate if the application should be fullscreen or not
# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
# (int) Android API to use
# (int) Minimum API required
# (int) Android SDK version to use
# (str) Android NDK version to use
# (bool) Use —private data storage (True) or —dir public storage (False)
# (str) Android NDK directory (if empty, it will be automatically downloaded.)
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
# (str) ANT directory (if empty, it will be automatically downloaded.)
# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# (str) Android entry point, default is ok for Kivy-based app
# (list) Pattern to whitelist for the whole project
# (str) Path to a custom whitelist file
# (str) Path to a custom blacklist file
# (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 process. Allows wildcards matching, for example:
# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
# (list) Android AAR archives to add (currently works only with sdl2_gradle
# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# (str) python-for-android branch to use, defaults to stable
# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
# (str) Filename of OUYA Console icon. It must be a 732×412 png image.
# (str) XML file to include as an intent filters in tag
# (list) Android additionnal libraries to copy into libs/armeabi
# (bool) Indicate whether the screen should stay on
# Don’t forget to add the WAKE_LOCK permission if you set this to True
# (list) Android application meta-data to set (key=value format)
# (list) Android library project to add (will be added in the
# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D
# (bool) Copy library instead of making a libpymodules.so
# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
# Python for android (p4a) specific
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
# (str) The directory in which python-for-android should look for your own build recipes (if any)
# (str) Filename to the hook for p4a
# (str) Bootstrap to use for android builds
# (str) Path to a custom kivy-ios folder
# (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: ()»
# (str) Name of the certificate to use for signing the release version
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
# (str) Path to build artifact storage, absolute or relative to spec file
# (str) Path to build output (i.e. .apk, .ipa) storage
# List as sections
# You can define all the «list» as [section:key].
# Each line will be considered as a option to the list.
# Let’s take [app] / source.exclude_patterns.
# Instead of doing:
# This can be translated into:
# You can extend section / key with a profile
# 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.
#title = My Application (demo)
# Then, invoke the command line with the «demo» profile:
#buildozer —profile demo android debug
Источник