3
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764 问题...
source link: https://droidyue.com/blog/2021/06/02/could-not-find-org-dot-jetbrains-dot-kotlin-kotlin-gradle-plugin-1-dot-5-0-release-764/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Could Not Find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764 问题解决
Jun 2nd, 2021
最近新创建的 Android Studio 项目,都报这样的问题。
A problem occurred configuring root project 'TooLargeToolSample'.
> 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
将build.gradle 中的文件内容
buildscript {
ext.kotlin_version = "1.5.0-release-764"
修改为如下即可。
buildscript {
ext.kotlin_version = "1.5.0"
Posted by androidyue Jun 2nd, 2021Android, Gradle, Kotlin, maven
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK