关于网友提出的“使用Intellij IDEA,在gradle中使用oschina的mvn仓库,总是提示Unindexed?”问题疑问,本网通过在网上对“使用Intellij IDEA,在gradle中使用oschina的mvn仓库,总是提示Unindexed?”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:使用Intellij IDEA,在gradle中使用oschina的mvn仓库,总是提示Unindexed?描述:
使用Intellij IDEA,在build.gradle中使用了oschina的mvn仓库地址
maven {url 'http://maven.oschina.net/content/groups/public/'}
但是,每次build后,Intellij IDEA都提示如下信息:
-------------------------提示信息 start---------------------------------------------------
Unindexed remote maven repositories found. Disable...
The following repositories used in your gradle projects were not indexed yet:
http://maven.oschina.net/content/groups/public
If you want to use dependency completion for these repositories artifacts,
Open Repositories List, select required repositories and press "Update" button
-------------------------提示信息 end---------------------------------------------------
按照提示,进入“Open Repositories List”,在oschina的mvn url点击“update”,提示“error”。
谁知道这个如何解决?
解决方案1:
gradle 中的jar的版本索引在oschina没有找到
1.添加多个仓库地址
2.换个 Jar 包的版本试试,确保这jar 在仓库里面存在