Head over to the Usage section below.
- XAMPP (Don't use PHP's built-in web server)
- PHP 8
-
Download the project, Extract files into a folder inside the htdocs folder of XAMPP.
-
Run the server.
-
Open the
build.gradle
file.Note! We assume that
maven-repository
is the folder you extracted the files to.buildscript { repositories { maven { url 'http://127.0.0.1/maven-repository/repository/' } // + google() jcenter() } ... }
Scroll down in the same file. (Skip this section if there's no
allprojects
scope in the file)allprojects { repositories { maven { url 'http://127.0.0.1/maven-repository/repository/' } // + google() mavenCentral() } }
-
Open the
gradle.properties
file and add the following lines.... systemProp.org.gradle.internal.http.connectionTimeout=500000 systemProp.org.gradle.internal.http.socketTimeout=500000
-
Turn on your VPN.
Optional: Sanctioned Countries -
Visit http://127.0.0.1/maven-repository/repository/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom, Done!
In the index.php
file, you can add as many servers as you want.
$servers = [
"https://repo1.maven.org/maven2/" => false,
"https://dl.google.com/dl/android/maven2/" => true // if true, the file will be stored in the local repository
];