配置根项目时出现问题。我需要做什么?

时间:2021-05-13 01:51:46

标签: java android android-studio kotlin

我刚刚创建了一个新的 android 项目来测试与我的主要项目分开的东西,这发生了。我试了几次,每次都得到同样的错误。

A problem occurred configuring root project 'login_test'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

1 个答案:

答案 0 :(得分:0)

尝试在根目录下的build.gradle中更改kotlin的版本,我这里使用的是1.3.72

res.toFixed()