从 gwt-material 的 github 演示 (gwt-material-demo) 复制代码,您会在编译时收到这个奇怪的错误:
[ERROR] 12477 [main] INFO org.jboss.errai.enterprise.rebind.NonGwtEventQualifierSerializerGenerator - Successfully loaded org.jboss.errai.cdi.EventQualifierSerializerImpl
[INFO] Computing all possible rebind results for '[my_packages].Binder'
[INFO] Rebinding [my_packages].Binder
[INFO] Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[INFO] [ERROR] Unexpected text in element: "? ?": <m:MaterialRow> (:21)
这是由于一些奇怪的不可见字符,如下图所示:
删除它们,一切正常。
再见尼古拉