我正在尝试在GWT项目中使用GWTQuery。
当我编译这个项目时,它写了许多被删除的错误,但是最后它附带了:
Scanning for additional dependencies: jar:file:/C:/eclipseBacklog/Backlog/war/WEB-INF/lib/gwtquery-1.3.2.jar!/com/google/gwt/query/client/GQuery.java
Computing all possible rebind results for 'com.google.gwt.query.client.GQuery'
Rebinding com.google.gwt.query.client.GQuery
Checking rule <replace-with class='com.google.gwt.query.client.impl.SelectorEngineNativeIE8'/>
[ERROR] Errors in 'jar:file:/C:/eclipseBacklog/Backlog/war/WEB-INF/lib/gwtquery-1.3.2.jar!/com/google/gwt/query/client/Properties.java'
[ERROR] Line 20: The import com.google.gwt.core.shared cannot be resolved
[ERROR] Line 39: GWT cannot be resolved
[ERROR] Unable to find type 'com.google.gwt.query.client.GQuery'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] Errors in 'jar:file:/C:/eclipseBacklog/Backlog/war/WEB-INF/lib/gwtquery-1.3.2.jar!/com/google/gwt/query/client/GQuery.java'
[ERROR] Line 1483: Failed to resolve 'com.google.gwt.query.client.GQuery' via deferred binding我做错什么了?
发布于 2013-04-05 22:24:46
检查您的gwt版本,您必须更新到GWT-2.5.x。因为gquery的这个工件有一个不想要的依赖项。2.5中有两个GWT.java类,gquery错误地依赖于新的com.google.gwt.core.shared。
在gwtquery站点上打开一个问题,因为此版本也适用于较早的gwt版本。
您还可以将gquery版本更改为1.3.1或1.4.0-快照。
更新:我只有被否决的版本1.3.2,并发布了1.3.3,它使用以前的gwt版本进行编译
https://stackoverflow.com/questions/15841494
复制相似问题