How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:155 次
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) —
推荐阅读:海虾与河虾口感差别大 到底怎么分辨食物的“寒热” 番石榴可用于辅助治疗糖尿病 哪些食物是不适合生吃的? 食品论文:中国的食品安全问题 糖炒栗子:警惕非法使用了糖精和石蜡 英国最新研究常喝矿泉水防老年痴呆 煲制鸡汤的营养价值和饮食宜忌 红豆的食疗作用常吃红豆的好处 吃出健康:大蒜的保健养生新吃法
- 评论列表
-
- 添加评论