android - 命令失败 : tar xzf android-sdk_r20-linux. tgz

标签 android python kivy buildozer

我正在尝试为 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

命令

$ buildozer android_new debug

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

需要任何详细信息吗?评论区要求

最佳答案

机器无法正常下载android SDK。

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

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

这应该输出:22a81cf1d4a951c62f71a8758290e9bb

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

关于android - 命令失败 : tar xzf android-sdk_r20-linux. tgz,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38562910/

相关文章:

java - 如何在 Android 应用程序中一次更改所有 Activity 转换?

python - 如何在Python抽象语法树(AST)中获取实际的用户定义变量名称?

python - 如何用 pandas 转换排名表?

python - 在 kvlang 中访问 Kivy 布局大小

python - 在 Kivy 中导入库

python - 使用线程更新 Kivy 标签

java - Android 应用程序无法通过移动数据连接到服务器

Android:不同语言的 "String Array",输入 "Assets"还是 "strings.xml"?

android - Pending Intent 有生命周期吗?

python - ftplib.error_perm : 553 Could not create file. (Python 2.4.4)