Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Gradle Disable Offline Mode

I got this error while trying to build the project. The error message shows the it is caused by the dependent file is not cached. I am wondering how to open download mode rather than offline. I zz

I did many searches, most suggestions are to edit the option on Gradle Setting in Android studio. However, the IntelliJ doesn't have this option...

enter image description here

like image 793
kevin Avatar asked Sep 27 '19 16:09

kevin


People also ask

How do I turn off Gradle offline mode?

View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode Gradle offline button in the Gradle panel. Go to File -> Settings. Then uncheck -> Offline work on the right.

How do I turn off offline mode in IntelliJ?

Go to Preferences -> Build,Execution,Deployment -> Build Tools -> Maven Uncheck the Work Offline option.

How do I enable Gradle offline mode in IntelliJ?

If we need to use the offline mode, just go to the Gradle window and click the Toggle Offline Mode button: After we click the button to enable offline mode, we can reload all dependencies and find that offline mode works.


1 Answers

Gradle offline mode in IntelliJ IDEA and Android Studio can be toggled via the following toolbar icon in the Gradle tool window:

Gradle | Toggle offline mode

like image 115
CrazyCoder Avatar answered Oct 25 '22 19:10

CrazyCoder