2020-12-04
作者:互联网
> Could not resolve all artifacts for configuration ':classpath'. > Could no
18:40 Gradle sync failed: Could not find trove4j.jar (org.jetbrains.trove4j:trove4j:20160824).
Searched in the following locations:
https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar
Consult IDE log for more details (Help | Show Log) (746 ms)
是因为 引用的地址找不到了。需要添加
buildscript { repositories { mavenCentral() google() maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenCentral() google() maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} jcenter() } }
需要添加
mavenCentral()
maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'} jcenter()
参考 https://www.freesion.com/article/9380325153/
标签:12,jcenter,04,nexus,maven,url,2020,trove4j,com 来源: https://blog.csdn.net/qq906786621/article/details/110670893