I need to install android studio on many PCs. Is there any way to install android studio latest version offline by downloading all the offline files just once? Most of the P
First I would like to inform you, that the best and secure way is to find good internet connection and connect your computer and simply wait android studio doing all of these above steps for you.but if you are like me with limited internet access or for some reason if you can't connect your computer at all and you are using windows 7, 8 and 10 64bit machine, here is a detailed steps to download all required components at once in another computer with internet and install on your computer COMPLETELY OFFLINE.
android studio 3.5.0 - download link
android-sdk -download link
gradle 5.4.1 - download link
android gradle plugin 3.5.0
At the time of writing this, the official website developer.android.com only provide android gradle plugin 3.5.0-beta 01 and the required version by android studio 3.5.0 is not the beta version but android gradle plugin 3.5.0 - so you have to recursively download every required files and folders using wget from this site (link).
In order to do that, first download wget (download link) copy it to c:\ location and add it to the windows path environment variable.
download the .bat file (android gradle plugin downloader)
After that select and right click the download.bat file and run it as an administrator. The batch command will use wget to download and construct all files and folder for android-gradle-plugin 3.5.0
wait for the download to complete....
And follow these below steps :
%USERPROFILE%/AppData/Local\Android/Sdk


%USERPROFILE%/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx/ if the folder didn't exist create it.


and paste it to %USERPROFILE%/.android/manual-offline-m2/android-gradle-plugin-3.5.0 create the folder android-gradle-plugin-3.5.0 if it didn't exist.

Create an empty text file with the following path and file name: windows won't allow to create init.d folder you have to do it from command line, so within the .gradle folder press shift + right click - > click open command_window_here and type mkdir init.d
"%USERPROFILE%/.gradle/init.d/offline.gradle/"

then from within the init.d folder - right click > hover over new > click text document. copy and paste below script and save as the file as offline.gradle
def reposDir = new File(System.properties['user.home'], ".android/manual-offline-m2")
def repos = new ArrayList()
reposDir.eachDir {repos.add(it) }
repos.sort()
allprojects {
buildscript {
repositories {
for (repo in repos) {
maven {
name = "injected_offline_${repo.name}"
url = repo.toURI().toURL()
}
}
}
}
repositories {
for (repo in repos) {
maven {
name = "injected_offline_${repo.name}"
url = repo.toURI().toURL()
}
}
}
}
Save the text file.

To make sure your are running offline, comment these below lines with "//" in build.gradle file, as shown below.
buildscript {
repositories {
// Hide these repositories to test your build against
// the offline components. You can include them again after
// you've confirmed that your project builds ‘offline’.
// google()
// jcenter()
}
...
}
allprojects {
repositories {
// google()
// jcenter()
}
...
}
By now, your offline android studio should work.