Eclipse org.apache.commons commons imaging 1.0-alpha2-SNAPSHOT的Gradle依赖项中存在非法条目
我只是在build.gradle文件中添加了Eclipse org.apache.commons commons imaging 1.0-alpha2-SNAPSHOT的Gradle依赖项中存在非法条目,eclipse,gradle,apache-commons-imaging,Eclipse,Gradle,Apache Commons Imaging,我只是在build.gradle文件中添加了compile'org.apache.commons:commons imaging:1.0-alpha2-SNAPSHOT',当我运行gradle Refresh Dependencies时,我得到了如下错误,我该怎么办 Illegal entry in Gradle Dependencies: C:/eclipse/unresolved dependency - org.apache.commons commons-imaging 1.0-alph
compile'org.apache.commons:commons imaging:1.0-alpha2-SNAPSHOT'
,当我运行gradle Refresh Dependencies时,我得到了如下错误,我该怎么办
Illegal entry in Gradle Dependencies: C:/eclipse/unresolved dependency - org.apache.commons commons-imaging 1.0-alpha2-SNAPSHOT
不确定为什么要使用此库的版本
1.0-alpha2-SNAPSHOT
,它似乎在公共maven repo上不可用(即使在apache snapshots repo中也不可用)
尝试改用已发布的版本(1.0-alpha1
)
这一个还可以
编译'org.apache.commons:commons imaging:1.0-alpha1'
很好。最好使用非快照版本。我会更新我的答案
dependencies{
compile group: 'org.apache.commons', name: 'commons-imaging', version: '1.0-alpha1'
}