Error running ‘Application‘: Command line is too long

问题

新项目在Idea里面启动时报错Error running ‘Application’: Command line is too long,如下面截图

 

Error running ‘Application‘: Command line is too long

解决

方法一(亲测可用)

找到项目根目录下idea/workspace.xml文件,然后再找到 

<component name="PropertiesComponent">


标签,标签如下所示

Error running ‘Application‘: Command line is too long

在component 标签中加上  

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

Error running ‘Application‘: Command line is too long

重新启动项目,问题解决。

方法二

Error running ‘Application‘: Command line is too long

如图所示,打开run-> edit configuration ,如下图所示修改,问题解决

 

Error running ‘Application‘: Command line is too long

 

Error running ‘Application‘: Command line is too long

上一篇:173 01 Android 零基础入门 03 Java常用工具类02 Java包装类 02 包装类学习 02 包装类常用方法


下一篇:小米8安装charles证书方法