天天看点

IDEA 各种疑难杂症+ IDEA:Cannot resolve symbol XXX+ IDEA:‘while’ statement cannot complete without throwing an Exception+ IDEA:JUnit 不能运行或没有运行选项+ IDEA : Your idea evaluation has.+ IDEA 打包 Jar

IDEA 使用中各种小问题

目录

  • + IDEA:Cannot resolve symbol XXX
  • + IDEA:'while' statement cannot complete without throwing an Exception
  • + IDEA:JUnit 不能运行或没有运行选项
  • + IDEA : Your idea evaluation has.
  • + IDEA 打包 Jar

+ IDEA:Cannot resolve symbol XXX

  1. File 菜单
  2. Invalidate Caches / Restart…
  3. Invalidate and Restart

+ IDEA:‘while’ statement cannot complete without throwing an Exception

可以在方法上添加注解

@SuppressWarnings("InfiniteLoopStatement")

消除报警

+ IDEA:JUnit 不能运行或没有运行选项

  • 添加 junit 包
  • 查看测试类访问权限是否为 public
  • 查看测试方法访问权限是否定义为 public

+ IDEA : Your idea evaluation has.

http://www.mamicode.com/info-detail-2931821.html

把 http://jetbrains-license-server 替换成 http://fls.jetbrains-agent.com

+ IDEA 打包 Jar

IDEA 各种疑难杂症+ IDEA:Cannot resolve symbol XXX+ IDEA:‘while’ statement cannot complete without throwing an Exception+ IDEA:JUnit 不能运行或没有运行选项+ IDEA : Your idea evaluation has.+ IDEA 打包 Jar