How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:226 次
If you have the following two errors building your Java projects using Eclipse,
- Unsafe cannot be resolved to a type
- The import sun.misc.Unsafe cannot be resolved
Then, this turns out to be the fix for me.

The import sun.misc.Unsafe cannot be resolved
Navigate to the project and Select Project – Preferences – Java Compiler – Enable project specific settings – Compiler compliance level = 11 – Use default compliance settings (Ticked)

eclipse-project-properties-java-compiler-enable-project-specific-settings
Apply and Close – then do a full clean rebuild, which will make the errors go away!
–EOF (The Ultimate Computing & Technology Blog) —
推荐阅读:写人作文关于勤劳的妈妈作文200字 熔掉金牌——读《在金牌面前》有感550字 初三别样的父爱作文 节约在身边 难忘的“六一”作文500字 瞬间的悸动 点亮希望之火 欢乐的六一作文450字 游西湖的作文小学 感谢对手的
- 评论列表
-
- 添加评论