我在我的项目中使用了dagger2.0的android-annotations。 在构建位置下:
build/generated/source/apt/debug/<package>/activity/
我看到我的生成类来自Dagger,如LoadActivity_MembersInjector.java。
但是我无法找到android-annotation库本身生成的类。我在我的活动中使用@UiThread
注释,并希望看到它如何被android-annotation lib重写,以便在UI线程上运行我的方法。
我的依赖项:
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
compile group: 'com.google.dagger', name: 'dagger', version: '2.8'
apt 'com.google.dagger:dagger-compiler:2.8'
compile 'com.android.support:support-annotations:25.1.0'
apt 'com.android.support:support-annotations:25.1.0'
有关如何访问此生成代码的任何指示?