android - 错误 : Could not find org. jetbrains.kotlin :kotlin-stdlib-jre8:1. 3.10。在 Android Studio 3.3 RC 1

标签 android kotlin

当将 android studio 更新到 3.3 RC 1 并构建项目(在以前版本的 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. 

也尝试最新的 kotlin 版本但同样的错误:

找不到 org.jetbrains.kotlin:kotlin-stdlib-jre8:1.3.10。

这是我的build.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
}

最佳答案

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

Kotlin standard library artifacts and split packages

根据 herejre8 的最新版本是 1.2.71 .

关于android - 错误 : Could not find org. jetbrains.kotlin :kotlin-stdlib-jre8:1. 3.10。在 Android Studio 3.3 RC 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53645384/

相关文章:

android - Admob 与 proguard 的问题

android - MediaStore - 功能无法找到所有歌曲

android - 如果不止一张卡相互重叠,则 CardView 阴影不显示

android - 找不到参数的方法 kapt()

android - RecyclerView、数据绑定(bind)和 ViewModel 没有数据

android - 无法生成 View 绑定(bind)程序 java.lang.NullPointerException

java - mypackage :layout/activity_main: Error inflating class androidx.fragment.app.FragmentContainerView 中的二进制 XML 文件第 18 行

Android Google Map v2 - 将标记移动到点击位置并更新地理坐标

android - 将数据从底部工作表对话框 fragment 传递到 fragment

android - Kotlin等待与协程异步