Search code examples
androidpythonkivybuildozer

Command failed: tar xzf android-sdk_r20-linux.tgz


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


Solution

  • 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.