jimongit / android-studio-3.5.
0-offline-installation Public template
master Go to file Code
jimongit Create [Link] fc7cdd8 · 5 years ago
.gitattributes Initial commit 5 years ago
[Link] Create [Link] 5 years ago
Android studio 3.5.0 Offline installation - Completely
Offline
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 [Link] 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.
Download Files
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 [Link] 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 [Link] 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 :
1 - unzip the android sdk to this below location
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
%USERPROFILE%/AppData/Local\Android/Sdk
2 - install android studio 3.5.0 and let android studio try to build your created project and close it
when it gives you an error.
3 - copy gradle [Link] to
%USERPROFILE%/.gradle/wrapper/dists/gradle-5.4.1-all/3221gyojl5jsh0helicew7rwx/ if the folder didn't
exist create it.
4 - copy all folders from C:\android-gradle-plugin-
3.5.0\[Link]\nexus\content\repositories\public
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
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.
5 - finally, to tell the Android build system to use the offline android gradle plugin, you need to
create a script, as described below.
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/[Link]/"
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
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 [Link]
def reposDir = new File([Link]['[Link]'], ".android/manual-offline-m2")
def repos = new ArrayList()
[Link] {[Link](it) }
[Link]()
allprojects {
buildscript {
repositories {
for (repo in repos) {
maven {
name = "injected_offline_${[Link]}"
url = [Link]().toURL()
}
}
}
}
repositories {
for (repo in repos) {
maven {
name = "injected_offline_${[Link]}"
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
url = [Link]().toURL()
}
}
}
}
Save the text file.
6 - run Android studio
To make sure your are running offline, comment these below lines with "//" in [Link] 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()
}
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
...
}
allprojects {
repositories {
// google()
// jcenter()
}
...
By now, your offline android studio should work.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF