查了下竟然是编译器报错,orz了。

Access restriction: 访问限制

on required library: 在依赖库(第三方包)

 

那就简单了,取消限制就好,

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

 idea没有这种报错

相关文章:

  • 2021-12-22
  • 2022-03-03
  • 2021-08-09
  • 2021-08-18
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
猜你喜欢
  • 2022-01-03
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-09-10
  • 2021-12-18
相关资源
相似解决方案