KineticGWT:无法解析导入com.google.gwt.canvas
尝试将KineticGWT与Maven一起使用,但出现以下错误。感谢您的帮助。我的Application.gwt.xml也附在下面 Application.gwt.xml:KineticGWT:无法解析导入com.google.gwt.canvas,gwt,Gwt,尝试将KineticGWT与Maven一起使用,但出现以下错误。感谢您的帮助。我的Application.gwt.xml也附在下面 Application.gwt.xml: <!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd"> <module> <
<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="net.edzard.kinetic"/>
<entry-point class='org.gaoshin.openflier.client.Application'/>
<stylesheet src='Application.css' />
</module>
在pom.xml文件中,我包含了gwt用户依赖项。我的gwt版本是1.7.1您记得包含gwt依赖项吗
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
com.google.gwt
gwt用户
${gwtVersion}
画布已添加到GWT 2.2中,因此请升级您的中年GWT
还请注意,KineticGWT 0.9.2-SNAPSHOT是针对GWT 2.5.0构建的,因此您可能希望使用该版本(GWT开发中的经验法则:尽快升级到最新的稳定版本;这是一个一般性建议,但特别适用于GWT)感谢Thomas提出的GWT版本建议。我还得到了Kineticgwt开发人员的一些帮助。事实证明,我需要升级两个东西。一个用于gwt,另一个用于GWTMaven插件 插件版本:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.5.0-rc2</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
org.codehaus.mojo
GWTMaven插件
2.5.0-rc2
编译
gwt版本:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.5.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.5.0</version>
<scope>provided</scope>
</dependency>
com.google.gwt
gwt servlet
2.5.0
运行时
com.google.gwt
gwt用户
2.5.0
假如
您使用的是什么版本的GWT?是的,我使用了。我已经在pom.xml中包含了gwt用户依赖项。
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.5.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.5.0</version>
<scope>provided</scope>
</dependency>