android - 构建器 "Command ' ['ant' , 'debug' ]' returned non-zero exit status 1"

标签 android python fedora kivy

我尝试使用 buildozer 编译基本代码。第一次运行它会安装依赖项并失败。后来运行它就失败了。

急需任何帮助。

提前致谢。

BUILD FAILED
/home/mbp/.buildozer/android/platform/android-sdk-21/tools/ant/build.xml:645: The following error occurred while executing this line:
/home/mbp/.buildozer/android/platform/android-sdk-21/tools/ant/build.xml:651: null returned: 127

Total time: 1 second
form/python-for-android/dist/sozluk/private/lib/python2.7/site-packages/kivy/modules/inspector.pyo
...
.....
...
assets/private.mp3: /home/mbp/build/.buildozer/android/platform/python-for-android/dist/sozluk/private/lib/python2.7/lib-dynload/_io.so
assets/private.mp3: /home/mbp/build/.buildozer/android/app/sitecustomize.pyo
assets/private.mp3: /home/mbp/build/.buildozer/android/app/main.pyo
assets/private.mp3: /home/mbp/build/.buildozer/android/app/sozluk.kv
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 "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
# Command failed: /usr/bin/python build.py --name DenemeSozluk --version 1.2.0 --package bs.sozluk.sozluk --private /home/mbp/build/.buildozer/android/app --sdk 14 --minsdk 8 --orientation sensor debug

Fedora 发行版 20(Heisenbug) 我在 ubuntu 上发现了以下关于非常相似问题的问题。它可能不是特定于发行版的。 Build Error while converting python file into apk using buildozer

Linux localhost.localdomain 3.12.9-301.fc20.x86_64 #1 SMP Wed Jan 29 15:56:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

完整输出: http://paste.fedoraproject.org/82968/41173791/

最佳答案

这是一个非常普遍的错误,它可能意味着很多事情。

要检查的一件事是您安装了 buildozer 的依赖项...特别是,我认为缺少 jdk(和 javac)可能会导致此问题。你有这些吗?

关于android - 构建器 "Command ' ['ant' , 'debug' ]' returned non-zero exit status 1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22228089/

相关文章:

android - 如何从Android中的aChartEngine制作自定义圆环图?

java - Android 4.4 打印 - "java.lang.IllegalStateException: printing is already pending"

android - Android 中可以将文本转换为 PDF 吗?

python - 如何优雅地停止python unittest?

Python Quart导入错误: cannot import name 'soft_unicode' from 'markupsafe'

android - react native : This release is not compliant with the Google Play 64-bit requirement

python - 向量化模糊图像的 Python 函数

linux - 由于删除文件系统包而无法启动 Linux

phpMyAdmin - 配置文件是否更改?

php - 在 Fedora 上使用 Xdebug 和 Netbeans 进行调试