Gradle not able to download andriod packages

I have a docker container with Andriod SDK on it. I am trying to build a Andriod Java application using gradlew. The thing is if i need to download from the internet I need to use proxy. For which I have configured my andriod and gradle to use the proxy setting.

I am able to download packages from the commandline using command

  • Do you have any resource explaining how to use Firebase Test lab with GitLab pipeline?
  • Android / busybox / termux test envionment
  • Getting the latest version of Android SDK for Ubuntu using wget
  • Sporadic Robolectric test failures when running inside Docker container
  • Android development environment in Docker
  • Connection reset by peer @ io_fillbuf - fd:8 (HTTPClient::KeepAliveDisconnected)
  • andriod update sdk

    But when i run gradlew it is able to download the dependency from jcentre but it fails trying to download some Andriod package i think. I have pasted the error message below.

    cat /root/.android/androidtool.cfg



    ./gradlew clean test assemble

    DK is missing a "platforms" directory.
    If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to /sdk/ndk-bundle.
    If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or to remove this warning.
        File /root/.android/repositories.cfg could not be loaded. Connection timed out (Connection timed out)
        IOException: Connection timed out (Connection timed out)
        IOException: Connection timed out (Connection timed out)
        IOException: Connection timed out (Connection timed out)
        Failed to download any source lists!

  • InnoDB error on mariadb oficial docker image
  • Kubernetes pods using too much memory on larger machines
  • Docker swarm constantly shuts down containers
  • Enable PAM configuration (limits.conf) for a running daemon
  • Setting up jupyterhub docker using one of the jupyter stacks
  • Get Docker Container CPU Usage as Percentage
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.