IDEA中编译报错:常量字符串过长

问题:

  debug的时候,有个字符串参数值比较长,导致IDEA编译的时候报错:常量字符串过长。

解决方法:

1、选择File→Settings→Build,Execution,Deployment→Java Compiler,将Use compiler改为Eclipse即可,IDEA默认是Javac。

原文地址:https://www.cnblogs.com/pcheng/p/13261889.html