Hi guys,I have tried building my first program using android studio 3.2.0 but there are these errors below and I am unable to resolve.
1)Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ‘:classpath’.
2)Gradle sync failed: No cached version of com.android.tools.build:gradle:3.6.2 available for offline mode.
Consult IDE log for more details (Help | Show Log) (18 s 920 ms)
Kindly I need your assistance
Hello,
Android Studio has an offline mode. When Offline Mode is on, Gradle will issue a build failure if you are missing any dependencies, instead of attempting to download them.
To turn off Offline Mode, do the following:
- Click File > Settings (on macOS, Android Studio > Preferences ) to open the Settings dialog.
- In the left pane, expand Build, Execution, Deployment and then click Gradle .
- Under Global Gradle settings, uncheck the Offline work checkbox.
- Click Apply or OK for your changes to take effect.
Once all dependencies have been downloaded once, you can enable offline mode again.
go to Tools > Kotlin > Configure Kotlin Plugin Update and update the plugin. then restart studio, and it will sync the gradle on restart.