dagger注入在eclipse下的配置。

来源:互联网 发布:mysql存储过程怎么用 编辑:程序博客网 时间:2024/06/04 22:16

前提,到dagger官方下载所需的全部jar包。

1,将dagger-compiler-1.2.1.jar放在工程目录下的compile-libs文件夹下。
2,其余的三个放在libs文件夹下。

3,
Project -> Properties ->Java Compiler -> Enable Project Specific Settings

Project -> Properties ->Java Compiler -> Annotation Processing -> Enable Project Specific Settings

Project -> Properties ->Java Compiler -> Annotation Processing -> Factory path -> Enable Project Specific Settings.

Then on the same screen, click "Add jars" and add: javawriter-2.2.1.jar, dagger-1.1.0.jar, dagger-compiler-1.1.0.jar and javax.inject.jar in this list as well for a total of four jars.

ok.restart eclipse.

 
 
0 0
原创粉丝点击