Idea中提示错误信息:Usage of API documented as @since 1.6+ less...

最近在Idea中遇到这么一个错误提示信息:

Usage of API documented as @since 1.6+ less... (Ctrl+F1)

This inspection finds all usages of methods that have @since tag in their documentation.

This may be useful when development is performed under newer SDK version as the target platform for production.

原因:意思是说明我们的项目配置的language level不够,去修改下就可以了

解决:打开Project Structure --》 Modules --》 Language Level 选择高版本的即可

 

如果idea的编译器提示错误消失,启动项目代码后发现此错误:

Information:Using javac 1.8.0_40 to compile java sources
Information:java: javacTask: 源发行版 1.8 需要目标发行版 1.8
Information:java: Errors occurred while compiling module 'provider'
Information:Module "provider" was fully rebuilt due to project configuration/dependencies changes
Information:2019/7/18 11:43 - Compilation completed with 1 error and 0 warnings in 2s 109ms
Error:java: Compilation failed: internal java compiler error

一般需要核查三个地方是否一致,我这里用的jdk版本是1.8,需要核查以下三个地方:

1,第一个就是上面所提到的Language Level

2,第二个是

3,第三个是

保持都一致,就解决了该问题。

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值