Multi project dependency issue

Hi, I have project C depends on project B and project B depends on project A. All A,B,C are in flat directory structure. I have the settings.gradle file in project B and C. When I build project B it goes and builds A and the build is successful. But when I build C, I get the following error.

Project with path ‘:A’ could not be found in project ‘:B’.

Any help appreciated.

Thanks, PB

place a single settings.gradle in the root folder and include A B and C.