How do I set up Android Studio to work completely offline?

后端 未结 13 828
迷失自我
迷失自我 2020-11-27 03:18

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\

相关标签:
13条回答
  • 2020-11-27 03:31

    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

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-27 03:34

    You can enable from File->Build, Execution, Deployment->Build Tools-> Gradle-> Offline Work.

    0 讨论(0)
  • 2020-11-27 03:35

    File > Settings > Build, Execution, Deployment > Gradle > Offline work

    0 讨论(0)
  • 2020-11-27 03:39

    OK guys I finally overcame this problem. Here is the solution:

    1. Download gradle-1.6-bin.zip for offline use.

    2. Paste it in the C:\Users\username\.gradle directory.

    3. 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.

    4. So now click on "Import Project" and go to the path C:\Users\username\AndroidStudioProjects and open your project and you are done.

    0 讨论(0)
  • 2020-11-27 03:39

    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.

    0 讨论(0)
提交回复
热议问题