gradle 报错Project 'xxx' not found

2021-09-13  本文已影响0人  疯狂的冰块
FAILURE: Build failed with an exception.

* What went wrong:
Project 'h2c-java-client' not found in root project 'h2c-java-client'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 59ms
上午12:23:35: Task execution finished ':h2c-java-client:OkHttpClientExample.main()'.

具体原因是子项目和父项目都有setting.gradle文件,gradle多模块使用错误,删除子模块的setting.gradle即可

上一篇下一篇

猜你喜欢

热点阅读