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 did many searches, most suggestions are to edit the option on Gradle Setting in Android studio. However, the IntelliJ doesn't have this option...
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.
Go to Preferences -> Build,Execution,Deployment -> Build Tools -> Maven Uncheck the Work Offline option.
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.
Gradle offline mode in IntelliJ IDEA and Android Studio can be toggled via the following toolbar icon in the Gradle tool window:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With