当我在gradle中包含外部项目时,我遇到了以下问题(我正在使用Intellij IDEA)。
Could not resolve all dependencies for configuration ':build'.
> Could not find :<external-project>:.
Searched in the following locations:
file:/Users/<user>/.m2/repository//<external-project>//<external-project>-.pom
file:/Users/<user>/.m2/repository//<external-project>//<external-project>-.jar我在settings.gradle中有以下几行代码:
include ':‘项目(’:‘).projectDir=新文件(rootProject.projectDir,'../')
build.gradle有:编译‘:外部项目’
单独来说,两个项目都工作正常,但当我包含外部项目时,我得到了依赖问题。
发布于 2016-01-29 05:08:38
引用添加到settings.gradle中的项目的正确方式是:
compile project(':external-project')https://stackoverflow.com/questions/35071413
复制相似问题