Gwt 匕首与libgdx
可以使用dagger 2和libgdx web吗?libgdx项目可以很好地使用android和桌面构建。当我添加web模块并运行时Gwt 匕首与libgdx,gwt,libgdx,dagger-2,Gwt,Libgdx,Dagger 2,可以使用dagger 2和libgdx web吗?libgdx项目可以很好地使用android和桌面构建。当我添加web模块并运行时 /gradlew html:superDev [ERROR] Line 1: The type javax.inject.Named cannot be resolved. It is indirectly referenced from required .class files [ERROR] Line 30: The import dagger.
/gradlew html:superDev
[ERROR] Line 1: The type javax.inject.Named cannot be resolved. It is indirectly referenced from required .class files
[ERROR] Line 30: The import dagger.Lazy cannot be resolved
[ERROR] Line 32: The import javax.inject.Inject cannot be resolved
[ERROR] Line 37: Inject cannot be resolved to a type
在这之后。我的Game.gwt.xml中有
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN" "http://www.gwtproject.org/doctype/2.8.0/gwt-module.dtd">
<module>
<inherits name="dagger.Dagger" />
<source path="com/trashmelody" />
</module>
它将抛出一个不同的错误
[ERROR] Line 34: No source code is available for type com.trashmelody.di.ComponentProvider<T>; did you forget to inherit a required module?
[ERROR] Line 34: No source code is available for type com.trashmelody.di.AppComponent; did you forget to inherit a required module?
[ERROR] Line 47: No source code is available for type com.trashmelody.managers.ScreenProvider; did you forget to inherit a required module?
[ERROR] Line 177: No source code is available for type com.trashmelody.di.DaggerAppComponent; did you forget to inherit a required module?
[ERROR] Line 178: No source code is available for type com.trashmelody.di.AppModule; did you forget to inherit a required module?
[错误]第34行:com.trashmelody.di.ComponentProvider类型没有可用的源代码;您是否忘记继承所需的模块?
[错误]第34行:com.trashmelody.di.AppComponent类型没有可用的源代码;您是否忘记继承所需的模块?
[错误]第47行:没有可用于com.trashmelody.managers.ScreenProvider类型的源代码;您是否忘记继承所需的模块?
[错误]第177行:com.trashmelody.di.DaggerAppComponent类型没有可用的源代码;您是否忘记继承所需的模块?
[错误]第178行:com.trashmelody.di.AppModule类型没有可用的源代码;您是否忘记继承所需的模块?
这是否意味着我们必须继承xml中的所有错误