报错:Argument for @NotNull parameter ‘module‘ of com/intelli/lopenapi/roots/ModuleRootManager.getinsta

报错原文

Argument for @NotNull parameter 'module' of com/intelli/lopenapi/roots/ModuleRootManager.getinstance must not be null

报错原因

这个报错是不能通过删掉.idea或者通过什么File -> Project Structure-> ...进行解决

我参考了下面这个

https://stackoverflow.com/questions/73159443/argument-for-notnull-parameter-module-of-com-intellij-openapi-roots-moduleroo

其中

评论提到:新的运行配置与旧的配置参数相同,但生成的 XML 文件却不同,因此我猜测这个问题是运行配置损害或者不兼容,尝试创建新的运行配置

解决方案