Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.
昨天笔记本重装了系统,今天下载安装了最新的版本:Android Studio 4.2,然后创建一个新项目后就出现了异常,如下:
A problem occurred configuring root project 'HelloWorld'.
> 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.pomRequired by:project :Possible solution:- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
在StackOverflow上找到了答案,把项目下的build.gradle中的kotlin版本改一下即可,原来的kotlin版本如下:
buildscript {ext.kotlin_version = "1.5.0-release-764"。。。
}
改为如下即可:
buildscript {ext.kotlin_version = "1.5.0"。。。
}
此时,会提示你1.5.0版本与IDE捆绑的1.5.0-release-764版本不同(如下图),不用管它,这个版本就是没法使用的,Google公司是真粗心大意啊,搞一个不能用的版本放到这真是搞笑,在考验大家解决问题的能力呢!
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.相关推荐
- MAC Android Studio| Error: The android gradle plugin version 3.0.0-alpha1 is too old
building 报错 The android gradle plugin version 3.0.0-alpha1 is too old, please update to the latest v ...
- JetBrains 发布Kotlin 1.0
在Beta 之后仅仅几个月,JetBrains 正式宣布Kotlin 的第一个稳定版本,其基于JVM 并兼容Android的新语言.制造商表示,Kotlin 打算作为一个"好工具" ...
- 【错误记录】Android Studio 4.2.1 编译报错 ( Kotlin 版本推荐设置 1.5.0 )
文章目录 一.报错信息 二.解决方案 一.报错信息 将 Android Studio 版本升级成最新的 4.2.14.2.14.2.1 版本 , 出现如下错误 ; Build file 'D:\pro ...
- 继往开来:Google I/O 21 Android Gradle Plugin 更新总结
距离 Google I/O 2021 已经过去了将近一个月,最近几天捋了捋关于 Android Gradle Plugin(AGP)方面的东西,主要集中在 "What's new in An ...
- Error:This Gradle plugin requires Studio 3.0 minimum
导入一个demo提示Error:This Gradle plugin requires Studio 3.0 minimum 在gradle.properties中导入 android.injecte ...
- Android Gradle Plugin 源码解析(上)
一.源码依赖 本文基于: android gradle plugin版本: com.android.tools.build:gradle:2.3.0 gradle 版本:4.1 Gradle源码总共3 ...
- android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'
android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' ...
- AS升级3.1 编译报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin.
AndroidStudio升级到3.1后编译报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plug ...
- AS升级编译报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin....
AS升级3.2.0 编译报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. 解决方法:将 ...
- 【错误记录】Android Studio 编译报错 ( This Gradle plugin requires a newer IDE able to request IDE model leve )
文章目录 一.报错信息 二.解决方案 一.报错信息 在 Android Studio 中编译 VirtualApp , 报如下错误 : Gradle 'VirtualApp' project refr ...
最新文章
- 头条抖音后端技术3面,centos卸载软件
- C++利用构造函数限制对象的创建
- 开了gomod不识别gopath_笔记本电脑开不了机原因 笔记本电脑开不了机解决方法【图文】...
- Eight Machine Learning JavaScript Frameworks to Explore
- IBM HTTP Server Websphere Plugin
- Java容器坐标起点_Java的屏幕坐标是以像素为单位,容器的左下角被确定为坐标的起点...
- 任务调度及远端管理(基于Quartz.net)
- 自行车房车,还是第一次看到,惊倒一片!
- 【微信服务号开发】01.接入指南
- linux 软硬连接
- fasthttp中的协程池实现
- php access 所有表,Oracle|sql server|access 数据库里的所有表名,字段名
- 第二次打卡 数据处理
- linux修改重传次数,《关于TCP SYN包的超时与重传》——那些你应该知道的知识(四)...
- win7开机突然变得很慢_Win7电脑反应变慢怎么办?
- Symbian开发——Symbian开发知识(转)
- ZipOutputStream导出压缩文件
- 新一线城市“抢人”大战:多地加快推进户籍改革
- 求一份很早的MUD文字游戏,海洋2或者海洋3的代码
- 虹膜识别与虹膜定位(续)算法实现 参考介绍
热门文章
- matlab 距平,MATLAB及其在地学中地应用.PDF
- “超越巴菲特计划“之股市小知识常用的术语笔记
- 网络安全术语和协议栈自身的脆弱性
- 越狱Season 1-Episode 12:Odd Man Out
- 2022.08.12 第三组 高小涵
- 数据分析《令人心动的offer2》—你心动了吗?
- 表示学习的挑战:三场机器学习竞赛报告Challenges in Representation Learning: A report on three machine learning contests
- ncs java 成都 面试_成都java工程师面试一般都是哪些问题,基础难不难!
- Typescript 笔记
- 珍爱生命,举手之劳__如何优雅的叫优步专车