Gradle Sync Issue Kotlin after Android 3.1 Stable Update
Asked Answered
B

4

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

Byrnes answered 27/3, 2018 at 7:51 Comment(1)
I unchecked the offline checkbox, while sync project always running Metadata of jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.1.3-2/….Sacrum
A
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

Alderney answered 27/3, 2018 at 8:21 Comment(0)
S
0

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

Settles answered 10/4, 2018 at 11:36 Comment(0)
F
0

try this Android studio -> File -> Invalidate Caches

Fotinas answered 22/2, 2022 at 8:25 Comment(0)
B
-1

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

Byrnes answered 27/3, 2018 at 8:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.