I am getting following issue when I included external project in gradle (I am using 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
I have following line in settings.gradle:
include ':' project(':').projectDir = new File(rootProject.projectDir, '../')
and build.gradle has: compile ':external-project'
individually both projects are working properly but when I am including external-project I am getting dependency issue.
引用settings.gradle中添加的项目的正确方法是:
compile project(':external-project')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.