美文网首页
gradle 报错Project 'xxx' not found

gradle 报错Project 'xxx' not found

作者: 疯狂的冰块 | 来源:发表于2021-09-13 00:28 被阅读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即可

    相关文章

      网友评论

          本文标题:gradle 报错Project 'xxx' not found

          本文链接:https://www.haomeiwen.com/subject/cbexgltx.html