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>
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>
相关文章推荐
- Error:java: javacTask: source release 1.8 requires target release 1.8
- IntelliJ 错误 Error:java: javacTask: source release 1.8 requires target release 1.8 解决
- Error:java: javacTask: source release 8 requires target release 1.8
- Error:java: javacTask: source release 1.8 requires target release 1.8解决方案
- 出现Error:java: javacTask: source release 1.7 requires target release 1.7
- idea错误 Error:java: javacTask: source release 1.8 requires target release 1.8 解决
- 解决 Error:java: javacTask: source release 1.X requires target release 1.X
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; the co
- 快速解决Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. > Compilation failed; see th
- idea出现:error:java: Target level '1.7' is incompatible with source level '1.8'.解决办法
- Error:Execution failed for task ':xxx:compileReleaseJavaWithJavac'.
- MVN package install error javac: invalid target release: 1.8
- MVN package install error javac: invalid target release: 1.8
- Error:Execution failed for task ':app:compileReleaseJavaWithJavac'
- [idea]Error:java: invalid source release: 1.8
- Error:Execution failed for task ':andBase:compileReleaseJavaWithJavac'. > Compilation failed;
- spark-2.2.0-rc4 编译 [error] javac: invalid source release: 1.8
- Error:java: invalid source release: 1.8
- IDEA编译时出现 Information:java: javacTask: 源发行版 1.8 需要目标发行版 1.8
- Error:Execution failed for task ':app:proguardRelease'.> java.io.IOException: Can't read [D:\android