在运行kivy时,我收到此错误。我已经安装了蚂蚁。
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
谁能告诉我为什么会出现这个错误?由于蟒蛇或蚂蚁或其他任何东西?
答案 0 :(得分:2)
我收到了此错误,但真正的错误略高于此:
Buildfile: /Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/build.xml
BUILD FAILED
/Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/build.xml:6: **Source resource does not exist: /Users/rallen/Documents/Devel/python/kivy/python-for-android/dist/default/project.properties**
Total time: 0 seconds
Traceback (most recent call last):
File "./build.py", line 412, in <module>
make_package(args)
File "./build.py", line 336, in make_package
subprocess.check_call([ANT, arg])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
谷歌搜索了一下,我找到了
https://groups.google.com/forum/#!topic/kivy-users/igYampuxxCU
表示只创建dist/default/project.properties
并放入
target=android-14
在该文件中。我实际上使用了android-19
,但这让我超越了这个问题。
答案 1 :(得分:1)
可能你需要安装32位库。
例如,我需要在Arch Linux上的lib32-glibc
安装lib32-libstdc++5
,lib32-zlib
和[multilib]
。