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

后端 未结 15 1030
闹比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 07:06

    Simple Steps:

    1. Click File > Project Structure

    2. Click Dependencies > Find and Click org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.21 (or whatever your current version is)

    3. Under Details > update section, click [update variable][update dependencies]

    4. Click Ok

    Best Regards

    0 讨论(0)
  • 2020-11-30 07:07

    In "build.gradle" file, change current Kotlin version that line and press synk:

    ext.kotlin_version = '1.1.1'
    

    /// That will look like:

    // Top-level build file where you can add configuration options common to all sub-projects/modules.

    buildscript {
        ext.kotlin_version = '1.1.1'
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.0'
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    0 讨论(0)
  • 2020-11-30 07:08
    buildscript {
        **ext.kotlin_version = '1.1.1'**  //Add this line
        repositories {
            **jcenter()**                 //Add this line
            google()
        }
        dependencies {
    //        classpath 'com.android.tools.build:gradle:3.0.1'
            classpath 'com.android.tools.build:gradle:3.1.0'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
    
    allprojects {
        repositories {
            **jcenter()**                 //Add this line
            google()
            maven { url "https://jitpack.io" }
        }
    }
    
    0 讨论(0)
提交回复
热议问题