我正在尝试编译一个 .apk (this one)使用构建器。但我不断收到下面的命令失败消息。我尝试过使用不同的 python 路径、重新安装 buildozer、使用不同的 buildozer 路径、从 Mac HD 编译、使用 sudo 编译、不同的 cython 版本。没有工作。
回溯(最近一次调用最后一次):
文件“build.py”,第 497 行,位于
make_package(参数)
文件“build.py”,第 351 行,在 make_package 中
subprocess.check_call([ANT, arg])
文件“/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”,第 540 行,在 check_call 中
引发 CalledProcessError(retcode, cmd)
subprocess.CalledProcessError:命令'['ant','debug']'返回非零退出状态1
命令失败:/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python build.py --name '我的应用程序' --version 1.2.0 --package org.test.myapp --private /Users/user/Documents/Py/kvapk/.buildozer/android/app --sdk 14 --minsdk 8 --permission INTERNET --permission ACCESS_NETWORK_STATE --orientation纵向调试
我在 OSX Mavericks 上使用 python 2.7.5、kivy 1.8.0、cython 0.19 和 buildozer 0.17
这是总输出:https://gist.github.com/feynman21/29d2f02c387112f2900b
这是 buildozer 无法安装 Android 构建工具的问题。希望这个问题能尽快得到解决。在此之前,您可以通过手动安装构建工具来解决此问题(https://github.com/kivy/buildozer/issues/146#issuecomment-57061269):
- Run
~/.buildozer/android/platform/android-sdk-21/tools/android
启动 Android SDK 管理器。 (如果您有不同的SDK版本,请替换android-sdk-21
与适当的文件夹)
- Click the
Deselect All
link at the bottom of the window, and check the box next to "Android SDK Build-tools -- 20". (Note: the exact version doesn't matter, just pick the newest version available.)
- 点击
Install 1 package...
button.
- Click
Accept License
and then click the Install
button.
- 关闭 SDK 管理器并继续使用 buildozer。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)