从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)
这是由于一些奇怪的不可见字符,如下图所示:
删除它们,一切都很好。
再见 尼古拉