【问题收录】Eclipse Type Access restriction问题解决

来源:互联网 发布:电脑桌面知乎 编辑:程序博客网 时间:2024/05/29 07:44

今天在Eclipse 中 import Android APP 的时候出现了下面这个错误
Location Type Access restriction: The type Predicate is not accessible due to restriction on required library /home/chicho/Android/Sdk/platforms/android-18/android.jar

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

这里写图片描述


参考链接:
http://blog.csdn.net/ccwwff/article/details/5773593






这里写图片描述

繁华如三千东流水
我只取一瓢爱了解

爱在月光下完美

你必须非常努力才可以看起来毫不费力。

0 0
原创粉丝点击