原因:Eclipse 默认把这些受访问限制的API设成了ERROR。
解决方法:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
原因:Eclipse 默认把这些受访问限制的API设成了ERROR。
解决方法:Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning