您的位置:首页 > 编程语言 > Java开发

Error:java: javacTask: source release 1.8 requires target release 1.8

2016-07-18 09:21 513 查看
1、File > Settings > Build, Execution, Deployment > Java Compiler
2、Change Target bytecode version to 1.8 of the module that you are working for.
If you are using Maven

Add this to pom.xml under the top-level project node:

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐