Error running 'x': Command line is too long. Shorten command line for x or also for Application ...

错误描述:Error running '类名': Command line is too long. Shorten command line for 类名 or also for Application default configuration.

解决办法:转自https://cloud.tencent.com/developer/article/1333085

1.Run-->Edit Configurations...

Error running 'x': Command line is too long. Shorten command line for x or also for Application ...

2..在项目的.idea/workspace.xml文件中,找到 <component name="PropertiesComponent">,添加一行<property name="dynamic.classpath" value="true" />

Error running 'x': Command line is too long. Shorten command line for x or also for Application ...