当前位置:网站首页>错误: -source 1.6 中不支持 diamond 运算符的解决办法
错误: -source 1.6 中不支持 diamond 运算符的解决办法
2022-07-16 20:38:00 【爱人间】
在intellij idea中导入一个网上下载的项目提示 -source 1.6 中不支持 diamond 运算符
解决思路:
1.检查ide的默认编译环境
找Java Compiler ,发现设置是 Target bytencode version 是1.6 改成1.7或者1.8

发现还是报错
2、检查项目的SDK选择和项目语言level 都改成1.8 和8
发现还是报错
3、检查项目的 Modules 中的language level 改成 8
这样基本上就不会报错了
边栏推荐
- Error in WordPress establishing database connection
- [AI Engineering] 02-ai Engineering
- Mapbox GL loading 3dfiles gradient model (video)
- 时序事件数据怎么处理?【慕尼黑工业大学博士论文】神经时序点过程(NTPP): 连续时间事件数据建模
- [play with es] es batch / full import data
- Overview of multimodal processing technology under data constraints
- Pytorch installation (very detailed)
- 【小程序项目开发-- 京东商城】uni-app之商品列表页面 (上)
- Application of botu PLC Fuzzy PID in liquid level control of double tank (fuzzy and ordinary PID switching function FB)
- lun的概念
猜你喜欢

After reading this article, I will teach you to play with vulnhub, the penetration test target machine -- evilbox one

企业数字化转型,为何SaaS模式如此重要?

Three sides of headlines + four sides of Alibaba + five sides of Tencent took the offer to share the summary, and finally joined Alibaba

Jiulian technology development board is officially integrated into the openharmony backbone

Technical dry goods | I want all the accuracy and speed of model optimization! Mindspire model accuracy Optimization Practice (II)

Topic selection recommendation of the latest information security graduation project

开发者分享 | MindSpore高阶API工具TinyMS初体验!

uCOSIIV2.93移植时为什么会出错,错误信息为undefined symbol ‘_OSTaskReturnHook‘

Leetcode45. Jumping game II

Uniapp Basics
随机推荐
leetcode--49字母异位词分组
Open source ten questions, a quick start guide for community newcomers
Alicloud3 build WordPress
Definition and usage of several special standards of C language
10分钟自定义搭建行人分析系统,检测跟踪、行为识别、人体属性All-in-One
LINGO求解分段函数最大(小)值
PHP 内存溢出 ?如何解决呢 ?
Solid contract for remote purchase of goods
The author of surging issued the pressure test results
技術幹貨| MindSpore新一代自主研發分子模擬庫:Mind-Sponge
开发者分享 | MindSpore高阶API工具TinyMS初体验!
After reading this article, I will teach you to play with vulnhub, the penetration test target machine -- evilbox one
Problem solving -- > online OJ (16)
创新中心首发!恭喜佳华物链云获MindSpore认证!
Lingo solves the maximum (small) value of piecewise function
leetcode--两个数组交集2
输入一个url全过程详解
The 100 billion yuan universe market is the new driving force of soul and Yingke
练习动画最好的方式:封面过渡
Contrat de solidity pour l'achat à distance de marchandises