7

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

Joker
  • 537
  • 1
  • 6
  • 19
  • 2
    I unchecked the offline checkbox, while sync project always running Metadata of https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/kotlin-reflect-1.1.3-2-sources.jar. – BinqiangSun Mar 30 '18 at 01:30

4 Answers4

0

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

0xAliHn
  • 18,390
  • 23
  • 91
  • 111
0

I have answered a similar question here . One of the key is to update the kotlin plugin from settings in android studio.

Kanishk Gupta
  • 369
  • 2
  • 10
0

try this Android studio -> File -> Invalidate Caches

Hamid-Ghasemi
  • 275
  • 2
  • 6
-1

Sorry, Silly Mistake figure out just Uncheck Offline checkbox from Gradle settings. :) Download all dependencies by build gradle online.

Joker
  • 537
  • 1
  • 6
  • 19