命令失败:tar xzf androidsdk\u r20linux.tgz版

2024-05-03 15:52:51 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在android上构建kivy应用程序,但得到了这个错误

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/ali/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK is missing, downloading
# Unpacking Android SDK
# Command failed: tar xzf android-sdk_r20-linux.tgz
# 
# Buildozer failed to execute the last command
# If the error is not obvious, please raise the log_level to 2
# and retry the latest command.
# In case of a bug report, please add a full log with log_level = 2

命令

^{pr2}$

日志: http://paste.ubuntu.com/20850804/

想知道细节吗?评论中的请求


Tags: thetobuildlogischecksdkconfiguration
2条回答

机器无法正确下载android SDK。在

您可以通过检查文件的md5和来确认这一点:

wget -O - http://dl.google.com/android/android-sdk_r20-linux.tgz | md5sum

该输出应为:22a81cf1d4a951c62f71a8758290e9bb

如果没有,我的第一个猜测是你被某种代理或防火墙阻止了。代理可以配置为限制要下载的文件的最大大小。如果您不是计算机的管理员,请检查日志或与系统管理员联系。在

我想出来了!在

问题是由于美国对我的国家(苏丹)的制裁,一些谷歌服务在我住的地方无法使用,返回的响应是html(不是gzip格式)。在

解决方案是使用vpn。在

相关问题 更多 >