gpt4 book ai didi

android - 无法解决 : org. jetbrains.kotlin:kotlin-stdlib

转载 作者:行者123 更新时间:2023-12-02 13:44:03 28 4
gpt4 key购买 nike

请帮帮我。我的项目有一些问题。
我有这样的错误

ERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib:1.4-M1-eap-93
ERROR: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-common:1.4-M1-eap-93

在我的依赖项 gradle 模块中,我编写了这段代码
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

这是我的构建脚本
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.70'

repositories {
maven {
url "http://dl.bintray.com/kotlin/kotlin-eap"
}
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.0'
classpath 'io.fabric.tools:gradle:1.31.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}


}

apply from: 'dependecies.gradle'

allprojects {
repositories {
maven {
url "http://dl.bintray.com/kotlin/kotlin-eap"
}
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url "http://dl.bintray.com/glomadrian/maven"
}
}
}

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

我使用 kotlin 版本 1.3.70 和 IDE android studio 版本 3.5.1

最佳答案

将 ext.kotlin_version = '1.3.70' 更改为 ext.kotlin_version = '1.4-M1'

关于android - 无法解决 : org. jetbrains.kotlin:kotlin-stdlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60711536/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com