android - buildozer fails to compile apk -
i have problems trying compile kivy android. doesn't matter do, same error.
compile following archs: armeabi-v7a [info]: found android api target in $androidapi [info]: available android apis (19) [info]: requested api target 19 available, continuing. [info]: found ndk dir in $androidndk [info]: got ndk version $androidndkver [info]: using google ndk r9c [info]: found virtualenv @ /usr/local/bin/virtualenv [info]: ccache missing, build not optimized in future. [info]: found following toolchain versions: ['4.6', '4.8', 'clang3.3'] [info]: picking latest gcc toolchain, here 4.8 [warning]: missing executable: autoconf not installed [warning]: missing executable: automake not installed [warning]: missing executable: libtoolize not installed [info]: no existing dists meet given requirements! traceback (most recent call last): file "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) file "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals file "/home/igor/Área de trabalho/kivy/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 905, in <module> main() file "/home/igor/Área de trabalho/kivy/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 902, in main toolchaincl() file "/home/igor/Área de trabalho/kivy/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 508, in __init__ getattr(self, args.subparser_name.replace('-', '_'))(args) file "/home/igor/Área de trabalho/kivy/.buildozer/android/platform/python-for-android-master/pythonforandroid/toolchain.py", line 145, in wrapper_func info_notify('no dist exists meets requirements, ' file "pythonforandroid/logger.py", line 101, in info_notify info('{}{}{}{}'.format(err_style.bright, err_fore.lightblue_ex, s, file "pythonforandroid/logger.py", line 70, in __getattr__ return getattr(self._real, key) if self._enabled else self._dict[key] attributeerror: 'ansicodes' object has no attribute 'lightblue_ex' # command failed: /usr/bin/python2.7 -m pythonforandroid.toolchain create --dist_name=betrayal --bootstrap=sdl2 --requirements=python2,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/igor/Área de trabalho/kivy/.buildozer/android/platform/build # # buildozer failed execute last command # error might hidden in log above error # please read full log, , search before # raising issue buildozer itself.
can me ?
well, spec configurations.
[app] # (str) title of application title = betrayal # (str) package name package.name = betrayal # (str) package domain (needed android/ios packaging) package.domain = org.test # (str) source code main.py live source.dir = . # (list) source files include (let empty include files) source.include_exts = py,png,jpg,kv,atlas # (list) list of inclusions using pattern matching #source.include_patterns = assets/*,images/*.png # (list) source files exclude (let empty not exclude anything) #source.exclude_exts = spec # (list) list of directory exclude (let empty 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.0 # (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 = python2,kivy # (str) custom source folders requirements # sets custom source requirements recipes # requirements.source.kivy = ../../kivy # (list) garden requirements #garden_requirements = # (str) presplash of application #presplash.filename = %(source.dir)s/data/presplash.png # (str) icon of application #icon.filename = %(source.dir)s/data/icon.png # (str) supported orientation (one of landscape, portrait or all) orientation = # (list) list of service declare #services = name:entrypoint_to_py,name2:entrypoint2_to_py # # osx specific # # # author = © copyright info # change major version of python used app osx.python_version = 3 # kivy version use osx.kivy_version = 1.9.1 # # android specific # # (bool) indicate if application should fullscreen or not fullscreen = 1 # (string) presplash background color (for new android toolchain) # supported formats are: #rrggbb #aarrggbb or 1 of 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. #android.presplash_color = #ffffff # (list) permissions #android.permissions = internet # (int) android api use #android.api = 19 # (int) minimum api required #android.minapi = 9 # (int) android sdk version use #android.sdk = 24 # (str) android ndk version use #android.ndk = 9c # (bool) use --private data storage (true) or --dir public storage (false) #android.private_storage = true # (str) android ndk directory (if empty, automatically downloaded.) #android.ndk_path = # (str) android sdk directory (if empty, automatically downloaded.) #android.sdk_path = # (str) ant directory (if empty, automatically downloaded.) #android.ant_path = # (bool) if true, skip trying update android sdk # can useful avoid excess internet downloads or save time # when update due , want test/build package # android.skip_update = false # (str) android entry point, default ok kivy-based app #android.entrypoint = org.renpy.android.pythonactivity # (list) pattern whitelist whole project #android.whitelist = # (str) path custom whitelist file #android.whitelist_src = # (str) path custom blacklist file #android.blacklist_src = # (list) list of java .jar files add libs pyjnius can access # classes. don't add jars not need, since jars can slow # down build process. allows wildcards matching, example: # ouya-odk/libs/*.jar #android.add_jars = foo.jar,bar.jar,path/to/more/*.jar # (list) list of java files add android project (can java or # directory containing files) #android.add_src = # (list) android aar archives add (currently works sdl2_gradle # bootstrap) #android.add_aars = # (list) gradle dependencies add (currently works sdl2_gradle # bootstrap) #android.gradle_dependencies = # (str) python-for-android branch use, defaults master #p4a.branch = stable # (str) ouya console category. should 1 of game or app # if leave blank, ouya support not enabled #android.ouya.category = game # (str) filename of ouya console icon. must 732x412 png image. #android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png # (str) xml file include intent filters in <activity> tag #android.manifest.intent_filters = # (list) android additionnal libraries copy 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 screen should stay on # don't forget add wake_lock permission if set true #android.wakelock = false # (list) android application meta-data set (key=value format) #android.meta_data = # (list) android library project add (will added in # project.properties automatically.) #android.library_references = # (str) android logcat filters use #android.logcat_filters = *:s python:d # (bool) copy library instead of making libpymodules.so #android.copy_libs = 1 # (str) android arch build for, choices: armeabi-v7a, arm64-v8a, x86 android.arch = armeabi-v7a # # python android (p4a) specific # # (str) python-for-android git clone directory (if empty, automatically cloned github) #p4a.source_dir = # (str) directory in python-for-android should own build recipes (if any) #p4a.local_recipes = # (str) filename hook p4a #p4a.hook = # (str) bootstrap use android builds # p4a.bootstrap = sdl2 # # ios specific # # (str) path custom kivy-ios folder #ios.kivy_ios_dir = ../kivy-ios # (str) name of certificate use signing debug version # list of available identities: buildozer ios list_identities #ios.codesign.debug = "iphone developer: <lastname> <firstname> (<hexstring>)" # (str) name of certificate use signing release version #ios.codesign.release = %(ios.codesign.debug)s [buildozer] # (int) log level (0 = error only, 1 = info, 2 = debug (with command output)) log_level = 0 # (int) display warning if buildozer run root (0 = false, 1 = true) warn_on_root = 1 # (str) path build artifact storage, absolute or relative spec file # build_dir = ./.buildozer # (str) path build output (i.e. .apk, .ipa) storage # bin_dir = ./bin # ----------------------------------------------------------------------------- # list sections # # can define "list" [section:key]. # each line considered option list. # let's take [app] / source.exclude_patterns. # instead of doing: # #[app] #source.exclude_patterns = license,data/audio/*.wav,data/images/original/* # # can translated into: # #[app:source.exclude_patterns] #license #data/audio/*.wav #data/images/original/* # # ----------------------------------------------------------------------------- # profiles # # can extend section / key profile # example, want deploy demo version of application without # hd content. first change title add "(demo)" in name # , extend excluded directories remove hd content. # #[app@demo] #title = application (demo) # #[app:source.exclude_patterns@demo] #images/hd/* # # then, invoke command line "demo" profile: # #buildozer --profile demo android debug
i guess thats information i've got.
i've changed versions in main.py , in specs , got nothing.
i'm gonna try change ubuntu version well, , see can do
by default, buildozer
looks line in main.py
of form __version__ = 'something'
. used set apk version, required field.
you can either add line main.py
, or comment out version check , uncomment alternative version method on next lines of buildozer.spec
. lets set version string in buildozer.spec
itself.
add __version__ = '0.1'
@ top of main.py file can package application without error.
Comments
Post a Comment