我试图编译的apk(这个)使用buildozer。不过,我不断收到下面的命令失败的消息。我使用的是不同的Python路径,重新安装buildozer,使用不同的buildozer路径,从Mac HD编译,使用sudo,不同的用Cython版本编译尝试。无工作。
I am trying to compile an .apk (this one) using buildozer. But I keep getting the command failed message below. I've tried using a different python path, reinstalling buildozer, using different buildozer paths, compiling from Mac HD, compiling with sudo, a different cython version. None work.
回溯(最近通话最后一个): 文件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(RET code,CMD) subprocess.CalledProcessError:命令[蚁族,调试]返回非零退出状态1
Traceback (most recent call last): File "build.py", line 497, in make_package(args) File "build.py", line 351, in make_package subprocess.check_call([ANT, arg]) File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['ant', 'debug']' returned non-zero exit status 1
命令失败: /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python build.py --name我的应用 - 版本1.2.0 --package org.test.myapp --private /Users/user/Documents/Py/kvapk/.buildozer/android/app --sdk 14 - minsdk 8 --permission互联网--permission ACCESS_NETWORK_STATE --orientation肖像调试
Command failed: /usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python build.py --name 'My Application' --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 portrait debug
我在OSX小牛使用python 2.7.5,kivy 1.8.0,用Cython 0.19和0.17 buildozer
I'm on OSX Mavericks using python 2.7.5, kivy 1.8.0, cython 0.19 and buildozer 0.17
下面是总输出: https://gist.github.com/feynman21/29d2f02c387112f2900b
推荐答案
这是一个问题buildozer未安装Android集结工具。希望这一问题可以尽快解决。在那之前,你可以解决此通过手动安装构建工具( https://开头github.com/kivy/buildozer/issues/146#issuecomment-57061269 ):
This is an issue with buildozer failing to install the Android build-tools. Hopefully this will be fixed soon. Until then, you can work around this by manually installing build-tools (https://github.com/kivy/buildozer/issues/146#issuecomment-57061269):
运行〜/ .buildozer /安卓/平台/ Android的SDK-21 /工具/机器人
推出了Android SDK管理器。 (如果你有一个不同的SDK版本,替换 Android的SDK-21
与相应的文件夹)
点击取消选择所有
在窗口底部的链接,并检查框旁边的Android SDK中内建工具 - 20。 (注:确切的版本没有关系,只挑中可用的最新版本。)
点击安装1包...
按钮。
点击接受许可
,然后点击安装
按钮。
关闭SDK管理器,并恢复与buildozer工作。
Run ~/.buildozer/android/platform/android-sdk-21/tools/android
to launch the Android SDK Manager. (If you have a different SDK version, replace android-sdk-21
with the appropriate folder)
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.)
Click the Install 1 package...
button.
Click Accept License
and then click the Install
button.
Close the SDK Manager and resume working with buildozer.相关推荐
最新文章