Search code examples
gradleintellij-ideabuild.gradle

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


Solution

  • 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