The command failed: tar xzf android-sdk_r20-linux.tgz

I tried to create a kivy app for 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 

Team

 $ buildozer android_new debug 

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

want any details? request in comments

+6
source share
2 answers

I understood that!

the problem was that some google services are not available where I live due to US sanctions in my country (Sudan), and the returned answer is html (not in gzip format).

The solution is to use vpn.

+2
source

The device will not be able to load the Android SDK correctly.

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

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

This should output: 22a81cf1d4a951c62f71a8758290e9bb

If this is not the case, I assume that you are blocked by some kind of proxy server or firewall. A proxy server can be configured to limit the maximum file size that you are trying to download. Check the logs or contact your system administrators if you are not a machine administrator.

+3
source

All Articles