Kivy Buildozer编译失败APK,命令失败:./distribute.sh -m" kivy" ð [英] Kivy Buildozer fails to build apk, command failed: ./distribute.sh -m "kivy" d

查看:1098
本文介绍了Kivy Buildozer编译失败APK,命令失败:./distribute.sh -m" kivy" ð的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Kivy和Buildozer建立一个APK,当我运行buildozer Android的调试,我收到此错误作为响应:

  A
./distribute.sh:行371:测试:参数太多
./distribute.sh:行372:测试:参数太多
./distribute.sh:行373:测试:参数太多
./distribute.sh:行374:测试:参数太多
./distribute.sh:行377:$ SRC_PATH / default.properties:暧昧重定向
./distribute.sh:行378:$ SRC_PATH / local.properties:暧昧重定向
CP:无法创建常规文件‘x/.buildozer/android/platform/python-for-android/.git/objects/pack/pack-b89e3f872ff0b0fbbaa9c0f1182451f8506241dc.idx’:没有权限
CP:无法创建常规文件‘x/.buildozer/android/platform/python-for-android/.git/objects/pack/pack-b89e3f872ff0b0fbbaa9c0f1182451f8506241dc.pack’:没有权限
CP:无法复制的目录,/家庭/嗵/ Dropbox的/工作,到自身,测试/ .buildozer /安卓/平台/蟒蛇换的Andr​​oid /编译/工作
CP:不会创建硬链接X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不能与stat'测试/ .buildozer /安卓/平台/蟒蛇换的Andr​​oid / src目录/ blacklist.txt':没有这样的文件或目录
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
CP:不会创建硬链接'X'到目录'Y'
#命令失败:./distribute.sh -mkivy-dpongtest

现在看来似乎正在经历一个奇怪的重定向,但它不幸的是返回非特异性的错误信息,因此,如果任何人有什么可能是任何想法,他们会大大AP preciated。谢谢!

这里的bulldozer.spec:

 应用程序#(STR)标题
标题=傍测试#(STR)包名
package.name = pongtest#(STR)封装领域(需要为Android / IOS预装)
package.domain = org.test#(STR)来源$ C ​​$ C,其中main.py直播
source.dir =。#(列表)源文件包括(让空包括所有文件)
source.include_exts = PY,PNG,JPG,KV,地图集#(名单)来源要排除的文件(让空不排除任何东西)
#source.exclude_exts =规范#(名单)列出目录排除(让空不排除任何东西)
#source.exclude_dirs =测试,宾#(名单)使用模式匹配排除清单
#source.exclude_patterns =许可证,图像/ * / *。JPG#(STR)应用程序版本(方法1)
version.regex ​​= __version__ ='(。*)
version.filename =%(source.dir)S / main.py#(STR)应用程序版本(方法2)
#版本1.2.0 =#(列表)应用程序的要求
要求= kivy#(清单)园的要求
#garden_requirements =#(STR)申请presplash
#presplash.filename =%(source.dir)S /数据/ presplash.png应用#(STR)图标
#icon.filename =%(source.dir)S /数据/的icon.png#(STR)支持的方向(横向,纵向或全部之一)
方向=景观#(布尔)指出,如果应用程序需要全屏或不
全屏= 1

#Android的具体
##(列表)权限
#android.permissions = INTERNET#(INT)的Andr​​oid API使用
#android.api = 14#(INT)所需的最低API(8 = 2.2的Andr​​oid设备)
#android.minapi = 8#(INT)的Andr​​oid SDK版本使用
#android.sdk = 21#(STR)的Andr​​oid NDK版本使用
#android.ndk = 9C#(布尔)使用--private数据存储(True)或--dir公共存储(假)
#android.private_storage = TRUE#(STR)的Andr​​oid NDK目录(如果是空的,它会自动下载。)
#android.ndk_path =#(STR)的Andr​​oid SDK目录(如果是空的,它会自动下载。)
#android.sdk_path =#(STR)蟒蛇换Android的git的克隆目录(如果是空的,它会自动从GitHub克隆)
#android.p4a_dir =#(STR)的Andr​​oid切入点,默认是确定基于Kivy应用
#android.entrypoint = org.renpy.android.PythonActivity#(表)的Java .jar文件列表添加到库,这样pyjnius可以访问
#他们的班。不要添加,你不需要罐子,因为额外的罐子可以减缓
#下构建过程。允许通配符匹配,例如:
#欧雅-ODK /库/ *。JAR
#android.add_jars = foo.jar中,bar.jar,路径/要/多/ *。JARJava文件#(列表)名单添加到Android项目(可以是Java或
#包含文件的目录)
#android.add_src =#(STR)蟒蛇换的Andr​​oid分公司使用,如果没有掌握,有益的尝试
#尚未合并功能。
#android.branch =主#(STR)欧雅控制台类别。应该是GAME或APP之一
#如果你离开这个空白,欧雅的支持将不会启用
#android.ouya.category = GAME欧雅控制台图标#(STR)文件名。它必须是一个732x412 PNG图像。
#android.ouya.icon.filename =%(source.dir)S /数据/ ouya_icon.png#(STR)的XML文件包括如℃的意图过滤器;活性GT;标签
#android.manifest.intent_filters =#(名单)Android的其它附加库复制到库/ armeabi
#android.add_libs_armeabi =库/安卓/ *。所以#(布尔)表示屏幕是否应留在
#不要忘记添加WAKE_LOCK权限如果设置为True
#android.wakelock =假#(名单)Android应用程序的元数据来设置(键=值格式)
#android.meta_data =#(列表)的Andr​​oid库项目中添加(将在加
自动#project.properties。)
#android.library_references =
[buildozer]#(INT)日志级别(仅适用于0 =错误1 =信息,2 =调试(命令输出))
LOG_LEVEL = 2


解决方案

有权限问题!当我搭配chmod 777孔源目录工作的事情(我不建议对作为一个固定尽管:))

I'm trying to build an APK using Kivy and Buildozer, and when I run "buildozer android debug," I receive this error as a response:

a
./distribute.sh: line 371: test: too many arguments
./distribute.sh: line 372: test: too many arguments
./distribute.sh: line 373: test: too many arguments
./distribute.sh: line 374: test: too many arguments
./distribute.sh: line 377: $SRC_PATH/default.properties: ambiguous redirect
./distribute.sh: line 378: $SRC_PATH/local.properties: ambiguous redirect
cp: cannot create regular file ‘x/.buildozer/android/platform/python-for-android/.git/objects/pack/pack-b89e3f872ff0b0fbbaa9c0f1182451f8506241dc.idx’: Permission denied
cp: cannot create regular file ‘x/.buildozer/android/platform/python-for-android/.git/objects/pack/pack-b89e3f872ff0b0fbbaa9c0f1182451f8506241dc.pack’: Permission denied
cp: cannot copy a directory, ‘/home/tom/Dropbox/Work’, into itself, ‘Test/.buildozer/android/platform/python-for-android/build/Work’
cp: will not create hard link x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: cannot stat ‘Test/.buildozer/android/platform/python-for-android/src/blacklist.txt’: No such file or directory
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
cp: will not create hard link ‘x’ to directory ‘y’
# Command failed: ./distribute.sh -m "kivy" -d "pongtest"

It seems like it's going through a weird redirect, but it's unfortunately returning an unspecific error message, so if anyone has any ideas on what it might be, they'd be greatly appreciated. Thanks!

Here's the bulldozer.spec:

# (str) Title of your application
title = Pong Test

# (str) Package name
package.name = pongtest

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (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

# (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.regex = __version__ = '(.*)'
version.filename = %(source.dir)s/main.py

# (str) Application versioning (method 2)
# version = 1.2.0

# (list) Application requirements
requirements = 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 = landscape

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 1


#
# Android specific
#

# (list) Permissions
#android.permissions = INTERNET

# (int) Android API to use
#android.api = 14

# (int) Minimum API required (8 = Android 2.2 devices)
#android.minapi = 8

# (int) Android SDK version to use
#android.sdk = 21

# (str) Android NDK version to 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, it will be automatically downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path = 

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#android.p4a_dir =

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (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 =

# (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

# (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 =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =
[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

解决方案

There are permission problems! When i chmod 777 the hole source dir things work (I do not recomend that as a fix though :) )

这篇关于Kivy Buildozer编译失败APK,命令失败:./distribute.sh -m&QUOT; kivy&QUOT; ð的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆