使用Intellij IDEA,在gradle中使用oschina的mvn仓库,总是提示Unindexed?

来源:互联网  时间:2016/6/3 20:07:16

关于网友提出的“使用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 在仓库里面存在

上一篇求大神戳入,关于idea导入gradle项目时报错,这是怎么回事啊?
下一篇1人/2月,android原创galgame引擎!试作Sample(懂的入)
明星图片
相关文章
《使用Intellij IDEA,在gradle中使用oschina的mvn仓库,总是提示Unindexed?》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)