buildozer: APK Can't be install (package can't be install in android)
I have source dir like this:
pages
pagelogin
login.py
login.kv
pagehome
home.py
home.kv
assets
.png
kivymd
main.py
root.kv
buildozer.spec:
`[app]
# (str) Title of your application
title = Importir Jam Tangan
# (str) Package name
package.name = importir
# (str) Package domain (needed for android/ios packaging)
package.domain = com.bs
# (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,pyc,png,jpg,jpeg,ttf,md,kv,json,atlas
# (list) List of inclusions using pattern matching
source.include_patterns = assets/*
#source.exclude_dirs=pages
# (str) Application versioning (method 2)
#version.regex = __version__ = ['"](.*)['"]
#version.filename = %(source.dir)s/kivymd/__init__.py
version = 11
# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy==1.11.1,requests,pillow,pygments,git+https://github.com/HeaTTheatR/KivyMD.git
# (str) Custom source folders for requirementss
# Sets custom source for any requirements with recipes
requirements.source.kivymd = kivymd
# (str) Presplash of the application
presplash.filename = %(source.dir)s/assets/splash.png
# (str) Icon of the application
icon.filename = %(source.dir)s/assets/logo.png
# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = portrait
# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0
# (string) Presplash background color (for new android toolchain)
android.presplash_color = #FFFFFF
# (list) Permissions
android.permissions = INTERNET,WRITE_EXTERNAL_STORAGE
# (int) Target Android API, should be as high as possible.
android.api = 28
# (int) Minimum API your APK will support.
android.minapi = 21
# (str) Android NDK version to use
android.ndk = 19b
p4a.branch=develop
# (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
android.skip_update = False
# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
android.accept_sdk_license = True
# (str) Android logcat filters to use
android.logcat_filters = *:S python:D
# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a
[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 = 0
# (str) Path to build artifact storage, absolute or relative to spec file
build_dir = ./.buildozer
# (str) Path to build output (i.e. .apk, .ipa) storage
bin_dir = ./bin
# (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
`
if i using command -> buildozer android debug deploy run logcat my android launcher error i used emulator but nothing error
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (6 by maintainers)
Icon and Splash Image (.png) is too large so i must compress until 520 px , and all work fine/ fix