类型 com.google.gwt.ajaxloader.client.AjaxLoader 没有可用的源代码;
No source code is available for type com.google.gwt.ajaxloader.client.AjaxLoader;
我正在将其他人构建的项目迁移到较新的包,我已经将错误的根源追溯到这个
No source code is available for type com.google.gwt.ajaxloader.client.AjaxLoader; did you forget to inherit a required module?
我是 GWT 的新手,不太确定它在幕后是如何 100% 工作的,所以我无法将解决方案应用于类似的帖子来解决此错误。
GWT 需要源代码而不是 .class
文件来完成它的工作。
因此,您从客户端代码到任何 jar 等的任何引用也需要包括源代码。
对于您的情况,您要么需要 com.google.gwt.ajaxloader.client.AjaxLoader
的来源,要么从您的 GWT 代码中删除对上述 class 的任何引用。
- 转到 Maven Repository and get gwt-ajaxloader.jar - 它包含
.java
和 .class
文件
- 将
jar
保存到项目中的 war/WEB-INF/lib
文件夹
- 右键单击 Project Explorer 中的文件(我假设您使用的是 Eclipse),select
Build Path
-> Add to Build Path
- 尽情享受 ;)
我正在将其他人构建的项目迁移到较新的包,我已经将错误的根源追溯到这个
No source code is available for type com.google.gwt.ajaxloader.client.AjaxLoader; did you forget to inherit a required module?
我是 GWT 的新手,不太确定它在幕后是如何 100% 工作的,所以我无法将解决方案应用于类似的帖子来解决此错误。
GWT 需要源代码而不是 .class
文件来完成它的工作。
因此,您从客户端代码到任何 jar 等的任何引用也需要包括源代码。
对于您的情况,您要么需要 com.google.gwt.ajaxloader.client.AjaxLoader
的来源,要么从您的 GWT 代码中删除对上述 class 的任何引用。
- 转到 Maven Repository and get gwt-ajaxloader.jar - 它包含
.java
和.class
文件 - 将
jar
保存到项目中的war/WEB-INF/lib
文件夹 - 右键单击 Project Explorer 中的文件(我假设您使用的是 Eclipse),select
Build Path
->Add to Build Path
- 尽情享受 ;)