Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uncheck offline mode in Intellij idea?

My gradle in intellij idea has no cache. So i found the best solution to uncheck the offline mode in gradle. But the problem is I didn't find any in Intellij Idea 2017.1 . Please help.

like image 886
Ravi Dhavla Avatar asked May 21 '17 14:05

Ravi Dhavla


3 Answers

On IntelliJ 2019.2 EAP I cannot find the "Offline work" box to uncheck. However, you can go to

$HOME/Library/Preferences/IntelliJIdea2019.2/options/gradle.settings.xml

on MacOS or the path defined by JetBrains and remove the OfflineMode option.

like image 190
andrewgazelka Avatar answered Oct 15 '22 15:10

andrewgazelka


If i understand you correctly,you can search `gradle' on the settings,and see the printscreen

like image 5
dabaicai Avatar answered Oct 15 '22 16:10

dabaicai


For Linux user using Intellij 2019.2 you can find the Gradle option file in ~/.IntelliJIdea2019.2/config/options/gradle.settings.xml or create one if it doesn't exist and add the "offlineWork" option with value=false

<application>
  <component name="GradleSystemSettings">
    <option name="offlineWork" value="false" />
  </component>
</application>

change the offlineWork option to false

like image 4
Bereket Belete Avatar answered Oct 15 '22 14:10

Bereket Belete