这是myeclipse 或者 eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,只要把

Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2021-04-30
  • 2022-12-23
  • 2021-07-23
  • 2022-01-06
  • 2021-08-18
  • 2021-05-30
猜你喜欢
  • 2021-09-25
  • 2021-08-09
  • 2021-08-11
  • 2021-06-24
  • 2021-10-16
  • 2021-06-03
  • 2022-03-01
相关资源
相似解决方案