Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7

后端 未结 15 1105
闹比i
闹比i 2020-11-30 06:17

I installed the Kotlin plugin into my app (v. v1.1.1-release-Studio2.2-1) and then selected "Configure Kotlin in Project" I selected compiler and runtime version

15条回答
  •  抹茶落季
    2020-11-30 06:50

    build.gradle (Project)

    buildScript {
        ...
        dependencies {
            ...
            classpath 'com.android.tools.build:gradle:4.0.0-rc01'
        }
    } 
    

    gradle/wrapper/gradle-wrapper.properties

    ...
    distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
    

    Some libraries require the updated gradle. Such as:

    androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines"
    

    GL

提交回复
热议问题