1.找到.idea下的workspace.xml

Command line is too long. Shorten command line for  报错解决方案_搜索

 

2.搜索找到  PropertiesComponent

在下面加入一行

<property name="dynamic.classpath" value="true" />  

如图:

Command line is too long. Shorten command line for  报错解决方案_搜索_02