How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:160 次
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) —
推荐阅读:小学解答应用题的一般步骤 小学四则混合运算计算法则 小学阶段分数和百分数的知识点 小学关于方程的知识点 加减乘除法各部分间的关系 小学的数量关系式 总复习:整数和小数、数的整除 什么是完全数 跷跷板与不等式 数学题:3条小狗、5条小狗和树间小路
- 评论列表
-
- 添加评论