解决方法:
Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings 里面的Deprecated and restricted API 中的Forbidden references(access rules)选为Warning就可以编译通过。
本文介绍如何在Eclipse中将受访问限制的API从错误级别调整为警告级别,以便能够成功编译项目。
解决方法:
Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings 里面的Deprecated and restricted API 中的Forbidden references(access rules)选为Warning就可以编译通过。
1万+

被折叠的 条评论
为什么被折叠?