解决Eclipse Access restriction: 问题

 

 

 今天在Windows下用eclipse 3.5调试Android package下的一些例程music, class VerticalTextSpinner已加入android.jar,但仍出现:

 

Access restriction: The type VerticalTextSpinner is not accessible due to restriction on required 

 library G:/android-sdk_1.5_windows/platforms/android-1.5/android.jar

 

问题解决,在Window - preference - Java - Compiler - Errors/Warnings界面的Deprecated and restricted API下。把Forbidden reference (access rules): 的规则由默认的Error改为Warning即可。

 

参考并感谢链接:

http://blog.csdn.net/yangbajing/archive/2009/11/11/4800200.aspx

你可能感兴趣的:(eclipse,windows,Access,compiler,reference,deprecated)