Android – subprocess.calledprocesserror returns non-zero exit status 1
•
Android
I received this error while running Kivy. I have installed ant
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
Who can tell me why this mistake happened? Because Python or ants or anything else?
resolvent:
I received this error, but the real error is slightly higher than this:
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
Google searched and I found it
https://groups.google.com/forum/# ! topic/kivy-users/igYampuxxCU
It's said that you just create dist / default / project.properties and put them in
target=android-14
In that file, I actually used android-19, but it let me go beyond this problem
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码