Hello,
I am following this tutorial: https://www.tutorialspoint.com/gradle/gradle_tasks.htm
but for some reason, I get this error message: “Project with path ‘:projectA’ could not be found in root project ‘myproject’” when I type in the terminal ‘gradle -q hello’
obviously the only project that exists so far is in the gradle.build project–just following the guidelines.
Could anyone help? was I supposed to create another file with projectA and if so how am I supposed to do that?
Thank you!
The tutorial is incomplete. In order for there to be a project(':projectA')
in your build, you need to create a settings.gradle
file:
settings.gradle
include 'projectA'
It’s working! Thank you!!!