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

后端 未结 15 1150
闹比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条回答
  •  旧时难觅i
    2020-11-30 07:05

    This is what worked for me: Using Gradle 4.8.1

    buildscript {
        ext.kotlin_version = '1.1.1' 
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'}
    }
    allprojects {
        repositories {
            mavenLocal()
            jcenter()
            google()
            maven {
                url "$rootDir/../node_modules/react-native/android"
            }
        maven {
                url 'https://dl.bintray.com/kotlin/kotlin-dev/'
        }
      }
    }   
    

提交回复
热议问题