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

问题:

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

 

解决方法:

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

 

posted @ 2020-07-07 17:00  PC君  阅读(1915)  评论(0编辑  收藏  举报