Access restriction错误, XX方法 is not accessible due to restriction on required library XXlib

解决方案:

Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。

相关文章:

  • 2021-11-13
  • 2022-01-17
  • 2021-05-06
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2021-06-22
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案