当前位置: 首页 > 知识库问答 >
问题:

错误:找不到org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.10.在Android Studio 3.3 RC 1中

卜和悌
2023-03-14

当将android studio更新到3.3RC1并构建项目(在以前版本的android studio中完美运行)时,它会显示以下错误:

ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
root project 'GPS_Speedometer_material' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

根据此错误,我已将kotlin版本1.2.17更新到1.3.0

Could not find org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.0. 

这是我的建筑Gradle

buildscript {
    ext.kotlin_version = '1.3.10'
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0-rc01'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
        classpath "com.github.dcendents:android-maven-gradle-plugin:2.0"
        classpath 'com.google.gms:google-services:4.0.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

共有1个答案

柴昆杰
2023-03-14

尝试更改kotlin-stdlib-jre8=>kotlin-stdlib-jdk8

Kotlin标准库工件和拆分包

根据这里,JRE8的最后一个版本是1.2.71。

 类似资料: