You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buildozer successfully builds the app after taking out openssl, and pil from the requirements in buildozer.spec, but it fails on startup. Is it a bug or mistake?
11-24 20:38:56.919 12128 12147 I python : File "/home/kivy/Desktop/Hoto/.buildozer/android/app/main.py", line 17, in <module>
11-24 20:38:56.919 12128 12147 I python : ImportError: No module named android
11-24 20:38:56.949 12128 12147 I python : Python for android ended.
buildozer.spec
Command:
buildozer android debug
Spec file:
[app]
# (str) Title of your application
title = Hoto
# (str) Package name
package.name = hoto
# (str) Package domain (needed for android/ios packaging)
package.domain = intellign
# (str) Source code where the main.py live
source.dir = .
# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,mp3, wav, zip, 3gp, TTF, ttf, otf, OTF
# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec
# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin
# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg
# (str) Application versioning (method 1)
version = 1.13
# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py
# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
requirements = kivy, plyer
#, openssl, pil
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy
# (list) Garden requirements
#garden_requirements =
# (str) Presplash of the application
presplash.filename = %(source.dir)s/presplash.png
# (str) Icon of the application
icon.filename = %(source.dir)s/appicon.png
# (str) Supported orientation (one of landscape, portrait or all)
orientation = portrait
# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0
# (list) Permissions
android.permissions = INTERNET, ACCESS_WIFI_STATE,ACCESS_NETWORK_STATE, CAMERA
# (int) Android API to use
android.api = 28
# (int) Minimum API required
android.minapi = 21
# (int) Android SDK version to use
android.sdk = 24
# (str) Android NDK version to use
android.ndk = 17c
# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True
# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path = "/home/kivy/Downloads/android-ndk-r17c/"
#android.arch = armeabi-v7a
p4a.branch = master
#p4a.source_dir = /home/kivy/Repos/python-for-android
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =
# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =
# (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:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
#android.add_jars = %(source.dir)s/*.jar
# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =
# (str) python-for-android branch to use, if not master, useful to try
# not yet merged features.
#android.branch = master
# (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) Android additionnal 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_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 = com.google.android.gms.version=@integer/google_play_services_version
# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =google-play-services_lib/
[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
It's desired. I guess it's an import from plyer trying to import JAVA_NAMESPACE, but I'm not sure (I don't have the logs). Just add android to your requirements and it'll add that package. :)
Adding android to the requirements in buildozer.spec fixes the problem but now from kivy.utils import platform imports an empty string, dropdown opens and closes immediately, 'TextInput' object has no attribute 'cursor_width', OSError: [Errno 13] Permission denied...Most features are no longer working after the changes in buildozer.spec
Versions
Description
Buildozer successfully builds the app after taking out openssl, and pil from the requirements in buildozer.spec, but it fails on startup. Is it a bug or mistake?
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: