How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:207 次
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) —
推荐阅读:新浪微博营销推广新策略分享 微博推广的核心思路及实用的14种方法 老员工分享:微博营销的8大技巧 企业在营销中为何要把握精准营销的策略 企业做微博营销的8个技巧 你知道微博营销中的秘密吗 幼年早慧的高斯 猜数的数学游戏 欧几里得言传身教 欧几里得的《几何原本》
- 评论列表
-
- 添加评论