First create a gradle.properties file
Note: Change the ip and port below
systemProp.http.proxyHost=10.10.10.10 systemProp.https.proxyHost=10.10.10.10 systemProp.http.proxyPort=3120 systemProp.https.proxyPort=3120 systemProp.http.proxyUser= systemProp.http.proxyPassword= systemProp.https.proxyUser= systemProp.https.proxyPassword= systemProp.http.nonProxyHosts= systemProp.http.proxyStrictSSL=false
Point the environment the gradle file
# Add gradle proxy settings export GRADLE_USER_HOME=/root/.gradleNow lets install libGDX in Android Studio Download the latest setup libGDX app.java -jar gdx-setup.jarOnly change the SDK folder and pick a detestation folder.
Once Download is completed
Go in to Android studio and import the project