GWT应用程序在开发模式下运行,但无法编译

GWT应用程序在开发模式下运行,但无法编译,gwt,gwt-gin,gwt-platform,Gwt,Gwt Gin,Gwt Platform,我的GWT应用程序在开发模式下工作,但编译时出现以下错误: [ERROR] Errors in generated://F1C9BA113391FC353E7321372D77396D/com/mygwtapp/client/gin/ClientGinjectorImpl.java' [ERROR] Line 64: Rebind result 'com.mygwtapp.client.core.presenter.ResponsePresenter.MyView' must be a cla

我的GWT应用程序在开发模式下工作,但编译时出现以下错误:

[ERROR] Errors in generated://F1C9BA113391FC353E7321372D77396D/com/mygwtapp/client/gin/ClientGinjectorImpl.java'
[ERROR] Line 64:  Rebind result 'com.mygwtapp.client.core.presenter.ResponsePresenter.MyView' must be a class
[ERROR] Line 2319:  Rebind result 'com.mygwtapp.client.core.presenter.MainPagePresenter.MyView' must be a class
[ERROR] Cannot proceed due to previous errors

我正在使用GWT 2.4.0和GwtPlatform。

这表明您已经注入了
MainPagePresenter.MyView
ResponsePresenter.MyView
,但没有绑定到具体类型。它在开发模式下工作(我假设您只有一个模块),但没有编译,这表明ginjector正在查找您在运行开发模式时没有遇到的注入站点

确保这两个都已绑定到Ginject中(或者为它们定义了
替换为
规则),或者删除对它们的引用


(如果这是正确的,考虑张贴一些代码,比如Gujter接口,也许是生成的代码,你的模块等)

见文档:您必须将演示者、视图和代理绑定在一起。尽管如此,我还是很惊讶它能在开发模式下工作。

这真的很难。很好地发现了这么少的信息和解释!