天天看點

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