diamond operator is not supported in -source 1.5和source release 8 requires target release 1.8的问题
Error:(43, 20) java: diamond operator is not supported in -source 1.5
(use -source 7 or higher to enable diamond operator)
或者
Error:java: javacTask: source release 8 requires target release 1.8
总共要检查6个地方,
Project Structure->Project(设置图中2处Project SDK与Project language level)
Project Structure->Modules(设置图中1处Language Level)
下面2处bytecode都要设置成8
如果上面的还不行,那么需要在pom.xml中检查:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
diamond operator is not supported in -source 1.5和source release 8 requires target release 1.8的问题相关推荐
- 【解决】Error:java: javacTask: source release 8 requires target release 1.8
第一个问题:有一段java代码,明明写的没有问题,在intellij IDEA中却画了红线 解决办法: 将java版本设置成你的JDK的版本. 运行程序,这个时候可能带来第二个问题 第二个问题 Err ...
- Maven错误 diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond
转自:https://www.cnblogs.com/EasonJim/p/6832049.html Maven错误 diamond operator is not supported in -sou ...
- iamond operator is not supported in -source 1.5
intellij运行flink出现下面的问题 Error:(56, 48) java: diamond operator is not supported in -source 1.5 (use ...
- diamond types are not supported at this language level
在intellij导入git项目之后出现 diamond types are not supported at this language level错误 或者String等报错 File->P ...
- java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components
项目在文件压缩的时候报错如下: Exception in thread "main" java.lang.IllegalArgumentException: Numbers of ...
- android you can attach the source by clicking attach source below
使用eclipse做Android开发时,想查看或追溯一些系统api时,往往会出现: The JAR /home/xxx/.../android.jar has no source attachmen ...
- linux source.命令,linux下source命令详解
本文收集整理关于linux下source命令详解的相关议题,使用内容导航快速到达. 内容导航: Q1:linux下的source命令 linux下的source命令source 命令是 bash sh ...
- linux脚本添加source,shell中的source命令的巧妙用法
首先,通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录.例如,当我们修改了/etc/profile文件,并想让它立刻生效,而不用重新登录,就可以使用source命令,如sourc ...
- Maven工程 报 Diamond types are not supported at language level ‘5‘
选择file project Structure 1.Project – Project language level 选择8 2. Modules – Language level: 选择8
最新文章
- mysql join not in_MySQL 使用左连接替换not in
- 你也能与AlphaGo谈笑风生:AlphaGo教学工具上线,2万多变化,37万多步棋
- 笔记-企业管理知识-战略组织类型
- boost::histogram::axis::circular用法的测试程序
- phpcms9.6 ueditor_Phpcms v9深度整合百度编辑器Ueditor
- 炒股应只做确定的上涨
- POJ1212 HDU1650 UVA180 LA5240 Eeny Meeny【约瑟夫环】
- Nacos视频教程分享
- SQLAPI++ Library 4.2.1 VS2010破解版
- AI芯片发展的前世今生
- android图片自动翻转,android图片翻转镜像
- php文章下一页,php获取文章上一页与下一页的方法,_PHP教程
- 从期刊层面看科研!计算机顶级期刊大盘点(上)
- [iOS] 浅析排序规则描述类: NSSortDescriptor
- 北交《计算题体系结构》实验四——Tomasulo算法实验
- python实现千牛客服自动回复语_千牛自动回复设置话术
- 入耳式蓝牙耳机哪种音质好?微型蓝牙隐形耳机推荐
- layui fixbar 返回顶部_普洱顶部排水板价格,屋面疏水板,本周热搜_程源排水工程材料...
- 2.zookeeper
- Beta 测试和 Alpha 测试有什么区别?