0

I faced following issue, so I needed to uncheck offline option in Android Studio but my offline option is not there, I am also attaching the screenshot and 3 errors. My android studio version is 3.6.1

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.

Second:

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.5.3.

Third:

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:3.5.3 available for offline mode.

no-offline

Twisha Kotecha
  • 1,082
  • 1
  • 4
  • 18
Khemraj Sharma
  • 57,232
  • 27
  • 203
  • 212
  • 1
    refer this thread https://stackoverflow.com/questions/57797772/cannot-enable-gradles-offline-mode-on-android-studio-3-6 – Afzal Khan Mar 12 '20 at 10:49

1 Answers1

2

From the Android Studio 3.6 new features blog post:

New location to toggle Gradle's offline mode To enable or disable Gradle's offline mode, first select View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode Gradle offline button

Or try with offline iconenter image description here

Ravi
  • 2,277
  • 3
  • 22
  • 37