Access restriction问题主要是过期的API不再被支持。在eclipse下可以使用下面的方法解决:
preference--->java--->complier--->errors/warning
---->deprecated and restricted API
把 Forbidden reference 的Error改成warning 即可
但是只是把error变成了warning,最好还是不使用这些过期的API
本文介绍了解决Eclipse中Accessrestriction问题的方法,通过调整编译器设置将Forbiddenreference的错误级别从Error改为Warning。虽然这仅是暂时解决手段,但仍推荐避免使用已废弃的API。
Access restriction问题主要是过期的API不再被支持。在eclipse下可以使用下面的方法解决:
preference--->java--->complier--->errors/warning
---->deprecated and restricted API
把 Forbidden reference 的Error改成warning 即可
但是只是把error变成了warning,最好还是不使用这些过期的API
1万+
201
1316

被折叠的 条评论
为什么被折叠?