How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:201 次
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) —
推荐阅读:茅田山作文 “六一”游园活动作文 那一次,我真尴尬 我和祖国同生日 静湖公园作文 《青铜葵花》有感300字 儿童的负重最好不要超过体重的20分之3 仓库先后运来两批粮食,如果只有第一批增加20% 小东的爷爷积攒了5000元钱打算存入银行 绿地长24米,宽15米,中间有宽为2米的道路
- 评论列表
-
- 添加评论