我试图用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 Release 20(海森堡)
我在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 - Buildozer“命令'['ant','debug']'返回非零退出状态1”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22228089/