-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dagger2相关 #31
Comments
@duchao Hello,这两个 |
请问一下,你是怎么切换不同的HOST的,我现在有两个不同的HOST,我使用了和你类似的代码,好像一直只能初始化一个HOST,是不是我还要注意其他的东西。谢谢 |
Hi @caopeng000 ,我为每个不同的HOST都创建了一个 |
这个我知道。我也是这样写的。但是有且只能识别一个,还有其他原因吗 |
@caopeng000 没有具体代码的话我只能猜原因了..比如依赖的提供方和接收方都要标注相同的
或者看下Dagger2编译后生成的代码,从里面找原因 |
好了。谢谢。没匹配上。提供方写的都是同一个地址 |
@ContextLife("Application")
App getContext(); // 提供App的Context
Activity getActivity();
等等
这些代码没用到吧?
看的很是费解,尤其是ContextLife.java这个不是scope吧,自定义标记的话,文件名看起来好难懂
再提个小bug哈
设置->清除缓存 不能实时更新,清除一次,再浏览网页,产生的缓存就不能清除了
The text was updated successfully, but these errors were encountered: