質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%

Q&A

解決済

1回答

1864閲覧

githubのActionのbuildozerでエラーの原因

Sehnu

総合スコア1

0グッド

0クリップ

投稿2023/01/23 07:46

編集2023/01/23 07:54

githubのActionにて、見よう見まねでkivy-launcherのapkを作成しておりました。

2021年8月にbuildできたものが、昨日Actionを流したところ、エラーとなります。
当方の環境は変更していないはずですが、何故エラーとなるのか?
何処がいけないのか悩んでおります。
結果を見ても良く理解できません。
エラーと思われる実行結果を下記に載せます。
解決するヒントをいただけないでしょうか?

[DEBUG]: Starting a Gradle Daemon (subsequent builds will be faster) [DEBUG]: [DEBUG]: > Configure project : [DEBUG]: WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats. [DEBUG]: [DEBUG]: > Task :clean UP-TO-DATE [DEBUG]: > Task :preBuild UP-TO-DATE [DEBUG]: > Task :preDebugBuild UP-TO-DATE [DEBUG]: > Task :mergeDebugNativeDebugMetadata NO-SOURCE [DEBUG]: > Task :compileDebugAidl NO-SOURCE [DEBUG]: > Task :compileDebugRenderscript NO-SOURCE [DEBUG]: > Task :generateDebugBuildConfig [DEBUG]: > Task :javaPreCompileDebug [DEBUG]: > Task :checkDebugAarMetadata [DEBUG]: > Task :generateDebugResValues [DEBUG]: > Task :generateDebugResources [DEBUG]: > Task :createDebugCompatibleScreenManifests [DEBUG]: > Task :extractDeepLinksDebug [DEBUG]: [DEBUG]: > Task :processDebugMainManifest FAILED [DEBUG]: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/un_official_launcher/src/main/AndroidManifest.xml:35:5-81 Error: [DEBUG]: Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:35:5-81 duplicated with element declared at AndroidManifest.xml:28:5-107 [DEBUG]: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/un_official_launcher/src/main/AndroidManifest.xml Error: [DEBUG]: Validation failed, exiting [DEBUG]: [DEBUG]: See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. [DEBUG]: [DEBUG]: [DEBUG]: > Task :mergeDebugResources [DEBUG]: [DEBUG]: FAILURE: Build failed with an exception. [DEBUG]: [DEBUG]: * What went wrong: [DEBUG]: Execution failed for task ':processDebugMainManifest'. [DEBUG]: > Manifest merger failed with multiple errors, see logs
BUILD FAILED in 31s 9 actionable tasks: 8 executed, 1 up-to-date STDERR: [INFO]: STDOUT (last 20 lines of 65): * What went wrong: Execution failed for task ':processDebugMainManifest'. > Manifest merger failed with multiple errors, see logs
[WARNING]: ERROR: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/un_official_launcher/gradlew failed!
# ANDROIDAPI = '30' # 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 Traceback (most recent call last): File "/action/entrypoint.py", line 159, in <module> main() File "/action/entrypoint.py", line 27, in main run_command(env["INPUT_COMMAND"]) File "/action/entrypoint.py", line 135, in run_command retcode = subprocess.check_call(command, shell=True) File "/usr/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'buildozer android debug' returned non-zero exit status 1.

buildozer.spec の内容です

[app] # (str) Title of your application title = (NTK) Kivy Launcher # (str) Package name package.name = un_official_launcher # (str) Package domain (needed for android/ios packaging) package.domain = org.kivy # (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,ttf # (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, art # (list) List of exclusions using pattern matching #source.exclude_patterns = license,images/*/*.jpg # (str) Application versioning (method 1) version = 0.1 # (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 = python3,kivy==master,hostpython3,android # (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/data/presplash.png # (str) Icon of the application #icon.filename = %(source.dir)s/data/icon.png # (str) Supported orientation (one of landscape, portrait or all) orientation = all # (list) List of service to declare #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY # # OSX Specific # # # author = ・ゑスゥ Copyright Info # change the major version of python used by the app osx.python_version = 3 # Kivy version to use osx.kivy_version = 2 # # Android specific # # (bool) Indicate if the application should be fullscreen or not fullscreen = 0 # (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. #android.presplash_color = #FFFFFF # (int) Android API to use ######################## # android.api = 28 android.api = 30 ############################ # (int) Minimum API required #android.minapi = 9 # (int) Android SDK version to use ############################ #android.sdk = 20 #android.sdk = 30 android.sdk = 30 ############################ # (str) Android NDK version to use # android.ndk = 19b # android.ndk = 23 # (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 = # (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 = # (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 # (str) Android entry point, default is ok for Kivy-based app #android.entrypoint = org.renpy.android.PythonActivity # (list) Pattern to whitelist for the whole project #android.whitelist = # (str) Path to a custom whitelist file #android.whitelist_src = # (str) Path to a custom blacklist file #android.blacklist_src = # (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 # (list) List of Java files to add to the android project (can be java or a # directory containing the files) #android.add_src = # (list) Android AAR archives to add (currently works only with sdl2_gradle # bootstrap) #android.add_aars = # (list) Gradle dependencies to add (currently works only with sdl2_gradle # bootstrap) android.gradle_dependencies = androidx.documentfile:documentfile:1.0.1,androidx.core:core:1.1.0 android.enable_androidx = True # (str) python-for-android branch to use, defaults to stable p4a.branch = master # (str) XML file to include as an intent filters in <activity> tag #android.manifest.intent_filters = # (str) launchMode to set for the main activity android.manifest.launch_mode = standard # (list) Permissions [app:android.permissions] READ_EXTERNAL_STORAGE WRITE_EXTERNAL_STORAGE ACCESS_LOCATION_EXTRA_COMMANDS ACCESS_NETWORK_STATE ACCESS_NOTIFICATION_POLICY ACCESS_WIFI_STATE BLUETOOTH BLUETOOTH_ADMIN BROADCAST_STICKY CHANGE_NETWORK_STATE CHANGE_WIFI_MULTICAST_STATE CHANGE_WIFI_STATE DISABLE_KEYGUARD EXPAND_STATUS_BAR FOREGROUND_SERVICE GET_PACKAGE_SIZE INSTALL_SHORTCUT INTERNET KILL_BACKGROUND_PROCESSES MANAGE_OWN_CALLS MODIFY_AUDIO_SETTINGS NFC READ_SYNC_SETTINGS READ_SYNC_STATS RECEIVE_BOOT_COMPLETED REORDER_TASKS REQUEST_COMPANION_RUN_IN_BACKGROUND REQUEST_COMPANION_USE_DATA_IN_BACKGROUND REQUEST_DELETE_PACKAGES REQUEST_IGNORE_BATTERY_OPTIMIZATIONS SET_ALARM SET_WALLPAPER SET_WALLPAPER_HINTS TRANSMIT_IR USE_FINGERPRINT VIBRATE WAKE_LOCK WRITE_SYNC_SETTINGS [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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

自己レスです。

[DEBUG]: > Task :processDebugMainManifest FAILED [DEBUG]: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/un_official_launcher/src/main/AndroidManifest.xml:35:5-81 Error: [DEBUG]: Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:35:5-81 duplicated with element declared at AndroidManifest.xml:28:5-107 [DEBUG]: /github/workspace/.buildozer/android/platform/build-armeabi-v7a/dists/un_official_launcher/src/main/AndroidManifest.xml Error: [DEBUG]: Validation failed, exiting

の記述に注目し、また類似のエラーの対処方法をネット上から参照し、試しに buildozer.spec の

# (list) Permissions [app:android.permissions] READ_EXTERNAL_STORAGE WRITE_EXTERNAL_STORAGE ACCESS_LOCATION_EXTRA_COMMANDS

# (list) Permissions [app:android.permissions] READ_EXTERNAL_STORAGE ### WRITE_EXTERNAL_STORAGE ACCESS_LOCATION_EXTRA_COMMANDS

としたところ、エラーが回避できました。

投稿2023/01/24 05:56

Sehnu

総合スコア1

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問