Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No cached version of gradle

Tags:

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.

like image 872
Nabdreas Avatar asked Jun 10 '14 15:06

Nabdreas


People also ask

How do I enable Gradle offline mode?

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.

How do I disable Gradle offline?

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.


1 Answers

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:

  1. Ctrl + Shift + "A"
  2. Type Gradle, then click Enter

You can toggle offline mode now

like image 166
WhatAJerk Avatar answered Oct 02 '22 20:10

WhatAJerk