首页 > 解决方案 > 如何解决包含 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

标签: gwtmaterial-designcarousel

解决方案


GWT 2.7 不支持 Java 8,因此不支持任何最近构建的 GWT Material Design。GWT 2.8.0 于 2016 年发布,截至此答案的最新版本是 2.8.2,通常应该使用而不是早期的 2.8 版本。


推荐阅读