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

后端 未结 13 830
迷失自我
迷失自我 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:42

    Android Studio 1.3.1 has neither

    Gradle > Global Gradle settings > Offline work

    nor a

    Compiler

    menu. To access the compiler menu, go to :

    File > Settings > Build, Execution & Deployment > Compiler > Compiler

    and de-select Configure on demand

    The above still uses data but is faster, I was able to load images and maps. However, in addition, if you want to be completely offline, you need to do the following:

     File -> Settings ->Build, Execution,Deployment -> Build Tools -> Gradle -> 
    

    check Offline work

    Click the OK button.

    For Android Studio 2.0 it is the same procedure.

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

    On Android 0.5.1 you can find the offline option in the File / Settings / Gradle (in the Project Settings section)/ Offline work

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

    Not sure if it was removed before, I heard it was kinda buggy in 0.5.8 but in AS 0.5.9 the settings is there:

    Gradle > Global Gradle settings > Offline work

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

    Android Studio 0.4.0 now includes support for offline:

    http://tools.android.com/recent/androidstudio040released

    "You can now open the Compiler > Gradle options and enable Offline mode, which will tell Gradle to ignore update-to-date checks"

    Updated Nov 2018: Now you can Open preferences, then search for "offline" and in the results select gradle and click "Offline work"

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

    I'm using Android Studio 0.5.4 (Mavericks).

    Preferences → Gradle → Global Gradle Settings → Offline work

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

    For enabling Offline mode Android Studio Version Above 3.6, refer the following answer.

    https://stackoverflow.com/a/64180290/4324288

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