Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – subprocess.CalledProcessError返回非零退出状态1大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在运行kivy时,我收到了这个错误.我已经安装了蚂蚁.

subprocess.CalledProcessError: Command '['ant','debug']' returned non-zero exit status 1

谁能告诉我为什么会出现这个错误?由于Python或蚂蚁或其他任何东西?

解决方法

我收到了这个错误,但真正的错误略高于此:

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**

@R_298_10586@l 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,但这让我超越了这个问题.

大佬总结

以上是大佬教程为你收集整理的android – subprocess.CalledProcessError返回非零退出状态1全部内容,希望文章能够帮你解决android – subprocess.CalledProcessError返回非零退出状态1所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。