I am getting this error when syncing gradle. I am pretty new to gradle so can't figure out what is the problem exactly?
Error:No cached version of com.android.tools.build:gradle:0.10.1 available for offline mode.
When I go to Setting->Gradle
, I have offline mode ticked off and using default gradle wrapper.
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.
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.
I have Android Studio 3.6 Beta 1, so there is no checkBox offline mode
in Gradle settings.
If somebody can't find it as well, here is the answer:
Gradle
, then click Enter
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