在Eclipse中遇到了如下的错误:
[quote]Access restriction: The method XXX from the type [A Class] is not accessible due to restriction on required library [A package].[/quote]
用如下的方法就可以解决:
[quote]Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
[/quote]
[quote]Access restriction: The method XXX from the type [A Class] is not accessible due to restriction on required library [A package].[/quote]
用如下的方法就可以解决:
[quote]Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
[/quote]