6

I was trying to build kivy app to android and got this error

# 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

command

$ buildozer android_new debug

log: http://paste.ubuntu.com/20850804/

want any details? request in the comments

Ali Faki
  • 3,928
  • 3
  • 17
  • 25
  • `# 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` – inclement Jul 25 '16 at 08:50
  • the full log: http://paste.ubuntu.com/20850804/ – Ali Faki Jul 25 '16 at 09:23

2 Answers2

3

The machine fails to properly download the android SDK.

You can confirm this by checking the md5 sum of the file :

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

This should output : 22a81cf1d4a951c62f71a8758290e9bb

If it doesn't, my first guess would be that you're blocked by some kind of proxy or firewall. A proxy can be configured to limit the maximum size of a a file you're trying to download. Check the logs or contact your sysadmins if you're not the administrator of the machine.

KeatsPeeks
  • 19,126
  • 5
  • 52
  • 83
2

I figured it out!

the problem was some google services are not available where i live due to USA sanctions on my country (Sudan) and the returned response is html (not in gzip format).

the solution is to use vpn.

Ali Faki
  • 3,928
  • 3
  • 17
  • 25