2016-07-25 41 views
6

我試圖建立kivy應用Android和得到這個錯誤命令失敗:焦油xzf Android的sdk_r20-linux.tgz

# 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/

想要任何細節?請求中的評論

+0

'#如果錯誤不明顯,請將log_level提升到2 #並重試最新的命令。 #如果有錯誤報告,請添加一個完整的日誌與log_level = 2' – inclement

+0

完整日誌:http://paste.ubuntu.com/20850804/ –

回答

2

我想通了!

問題是一些谷歌服務沒有可用的地方,由於美國對我的國家(蘇丹)的制裁,返回的響應是html(而不是gzip格式)。

解決方案是使用vpn。

3

該機器未能正確下載android SDK。

您可以通過檢查該文件的MD5校驗和確認此:

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

這應該輸出:22a81cf1d4a951c62f71a8758290e9bb

如果不是這樣,我的第一個猜測是,你封鎖某種代理或防火牆。代理可以配置爲限制您嘗試下載的文件的最大大小。如果您不是機器的管理員,請檢查日誌或聯繫您的系統管理員。

+0

我知道什麼問題看到我的答案在下面 –