今天在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
繁华如三千东流水
我只取一瓢爱了解
爱在月光下完美
你必须非常努力才可以看起来毫不费力。