'Gradle Sync Issue Kotlin after Android 3.1 Stable Update
Hey after updating Android Studio to 3.1 Stable version i am getting following error to all my projects. Any help will be appreciated.
Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.1.3-2): No cached version available for offline mode
Solution 1:[1]
I guess its Kotlin version related issue.
First try to update your kotling version. I guess latest version is 1.2.31
The version of Kotlin to use is usually defined as the kotlin_version property:
buildscript {
ext.kotlin_version = '1.2.31'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
For details: https://kotlinlang.org/docs/reference/using-gradle.html
Solution 2:[2]
I have answered a similar question here . One of the key is to update the kotlin plugin from settings in android studio.
Solution 3:[3]
try this Android studio -> File -> Invalidate Caches
Solution 4:[4]
Sorry, Silly Mistake figure out just Uncheck Offline checkbox from Gradle settings. :) Download all dependencies by build gradle online.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | 0xAliHn |
| Solution 2 | Kanishk Gupta |
| Solution 3 | Hamid-Ghasemi |
| Solution 4 | Joker |
