How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:217 次
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) —
推荐阅读:冬季经常喝新鲜梨汁的九大好处 百果之王红枣的营养价值和保健功效 姜对身体好处多但晚上不宜大量食用 糖尿病患者饮食误区 吃得太少致营养不良 把牛奶当水喝会带哪些健康危害 不适当多吃蔬菜也可能造成胃肠不适 帮助预防“三高”心血管疾病的食谱 白酒市场虚假宣传潜规则:年份造假工艺虚标 三种适合春分时节吃的常见养生食物 电脑族需要多吃一些明目功能的食物
- 评论列表
-
- 添加评论