Idea 错误解决 Error:(5, 0) Project with path ‘:xxxxxx’ could not be found in root project ‘xxxxxx’.

  • Post author:
  • Post category:其他


多模块开发中报错

解决办法:

主模块中的settings.gradle输入类似下面的代码完成。


include ':common'
include ':admin'
include ':api'

project(':common').projectDir = "$rootDir/common" as File
project(':admin').projectDir = "$rootDir/admin" as File
project(':api').projectDir = "$rootDir/api" as File






版权声明:本文为army2000原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。