I have very slow bandwidth, so I\'m trying to keep all the required files on the local machine to work with Android Studio completely offline. When I click on \"New Project\
for a complete offline android studio 3.5.0 installation - you need to download all these below components
android studio, gradle, android gradle plugin and sdk.
here is a detailed step by step Stackoverflow answer for the question
how to install android studio full offline
It seems as though gradle was not installed for me. Going to Android/Sdk/tools/templates/gradle/wrapper
and running ./gradlew tasks --debug
has resulted in it downloading.
You can enable from File->Build, Execution, Deployment->Build Tools-> Gradle-> Offline Work.
File > Settings > Build, Execution, Deployment > Gradle > Offline work
OK guys I finally overcame this problem. Here is the solution:
Download gradle-1.6-bin.zip
for offline use.
Paste it in the C:\Users\username\.gradle
directory.
Open Android Studio and click on the "Create New Project" option and you will not get this error any more while offline.
You might get some other errors like this:
Don't worry, just ignore it. Your project has been created.
So now click on "Import Project" and go to the path C:\Users\username\AndroidStudioProjects
and open your project and you are done.
Just as an assist if you go with Android Studio 0.4.x offline mode (because this thread is one of the main ones that google throws up when querying this issue).
From Alex Ruiz (Google+):
If you specify dependency versions using "+" (e.g. 0.8.+) Gradle (not Android Studio) will check that you have the latest version of such dependency periodically (every 24 hours,) even in offline mode
You need to take the plus out.