How to Fix “Unsafe cannot be resolved to a type” in
- 时间:2020-10-12 15:56:23
- 分类:网络文摘
- 阅读:211 次
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) —
推荐阅读:数学题:用一条56米长的栅栏围一个花园 数学题:小李是卖鞋店老板 数学题:学校把两捆树苗分给三个年级种植 数学题:如果x分之1加y分之1等于12分之5 数学题:一枚2分的硬币重1克 数学题:水果店买来两筐苹果 数学题:一个长方形铁皮,长为32厘米 数学题:小明家住7楼 数学题:有软、硬两种糖果放成一堆 创新自信与成功
- 评论列表
-
- 添加评论