编辑 2018-02-08:示例项目演示如何在https://github.com/ravn/dagger2-named-string-inject-example处执行此操作 - 注意:the whole source is in a single file! 我在看匕首是否可以替代我们的guice(因为我们的部署Java平台很慢)。 我构建在运行时图配置的字符串的,我想有根据需要匕首注入。 E
我想让Dagger在我的项目上工作。 但是我在编译过程中得到我的课之一以下异常: error: No injectable members on Foo. Do you want to add an injectable constructor? 不过,类有没有相关性,因此使用默认的无参数的构造函数: public class Foo
{
...
}
我真的必须添加一个像下面那样
我试图用Dagger注入一个android注释活动。 java.lang.IllegalArgumentException: No inject registered for members/com.app.server.AddServerActivity_. You must explicitly add it to the 'injects' option in one of your mod