gwt - 如何解决包含 GWT Material Design 的编译错误
问题描述
我想在我的项目中使用 MaterialCarousel,因此我想我相应地设置了我的项目。这是我尝试编译时得到的结果。
Compiling module org.vadiraj.curiosity.GWTCuriosity
Ignored 240 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Tracing compile failure path for type 'gwt.material.design.addins.client.carousel.MaterialCarousel'
[ERROR] Errors in 'gwt/material/design/addins/client/carousel/MaterialCarousel.java'
[ERROR] Line 135: Lambda expressions are allowed only at source level 1.8 or above
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
解决方案
GWT 2.7 不支持 Java 8,因此不支持任何最近构建的 GWT Material Design。GWT 2.8.0 于 2016 年发布,截至此答案的最新版本是 2.8.2,通常应该使用而不是早期的 2.8 版本。
推荐阅读
- javascript - 根据自定义逻辑减少对象数组
- javascript - 根据第二个数组中对象的属性填充对象数组中缺失的对象
- reactjs - 支持路由器链接的反应数据表
- r - ggplot中图例中键标签文本的格式
- java - 我们可以在 lambda 表达式中改变这个引用吗?
- javascript - JQuery:在点击处理时将多个模式分开
- python - 如何使用 APIView 为每个处理函数设置权限?
- ios - Swift:任何数组不符合协议“可解码”
- pine-script - pine-script 如何知道最后一笔交易是否是止损,等待 n 根柱线打开新交易,如何参考最后一笔交易的 id
- javascript - 如何加载