本文主要是介绍Android studio Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$A,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
导入项目异常:
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.android.internal.version-check']
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
Android studio版本低于导入项目的版本,build.gradle版本修改即可
解决方法:
buildscript {repositories {google()jcenter()}dependencies {
// classpath 'com.android.tools.build:gradle:4.0.0'classpath 'com.android.tools.build:gradle:3.6.3'}
}allprojects {repositories {google()jcenter()}
}
将build.gradle 4.0.0修改为自己项目适合的版本,如:3.6.3
studio官网下载地址:https://developer.android.google.cn/studio/
这篇关于Android studio Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$A的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!