码迷,mamicode.com
首页 > 编程语言 > 详细

【IDEA】Error: java: Compliance level '1.6' is incompatible with target level '1.8'. A compliance level '1.8' or better is required解决办法

时间:2018-02-08 20:23:12      阅读:1693      评论:0      收藏:0      [点我收藏+]

标签:ble   class   module   err   ide   alt   compiler   gpo   http   

在运行的时候常常出现如下错误:

Error: java: Compliance level ‘1.6‘ is incompatible with target level ‘1.8‘. A compliance level ‘1.8‘ or better is required

 

解决办法如下:

1. 点击File标签里的Settings, 选择Build,Execution,Deployment->Compiler->Java Compiler,将其中的其中的版本改成1.8;

技术分享图片

2. 点击File标签里的Project Structure,选择Project Settings->Modules,选择1.8版本对应的language level

技术分享图片

完成以上两步后,再运行时,便不再出现版本错误。

 

【IDEA】Error: java: Compliance level '1.6' is incompatible with target level '1.8'. A compliance level '1.8' or better is required解决办法

标签:ble   class   module   err   ide   alt   compiler   gpo   http   

原文地址:https://www.cnblogs.com/lauren1003/p/8432442.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!