1

在编译我的代码时,我遇到了这个问题:

No source code is available for type com.google.gwt.visualization.client.visualizations.corechart.PieChart; did you forget to inherit a required module?
 [ERROR] Line 30: No source code is available for type com.google.gwt.visualization.client.visualizations.corechart.PieChart.PieOptions; did you forget to inherit a required module?
 [ERROR] Line 38: No source code is available for type com.google.gwt.visualization.client.AbstractDataTable; did you forget to inherit a required module?
 [ERROR] Line 39: No source code is available for type com.google.gwt.visualization.client.DataTable; did you forget to inherit a required module?
 [ERROR] Line 40: No source code is available for type com.google.gwt.visualization.client.AbstractDataTable.ColumnType; did you forget to inherit a required module?
 [ERROR] An internal compiler exception occurred

我正在使用 gwt 2.1 和可视化。我尝试在 *.gwt.xml 中添加一个条目,但没有帮助。任何帮助将不胜感激。

4

1 回答 1

8

你确定你添加了

<inherits name='com.google.gwt.visualization.Visualization'/>

到您的 *.gwt.xml 文件?因为在我看来,这是一个问题的原因。

于 2012-07-27T11:00:15.327 回答