個人で出してるアプリでDagger使ってるところでDaggerが提供しているAndroid向けのモジュールを使うようにしたときのめも。 公式 google.github.io 基本的には公式のドキュメントの通りなのですが、詰まったポイントがあったので、自分の手順としてまとめておきます。 準備 Gradleにdagger-androidとdagger-android-supportを追加 compile 'com.google.dagger:dagger:2.11' compile 'com.google.dagger:dagger-android:2.11' compile 'com.google.dagger:dagger-android-support:2.11' ApplicationComponentにAndroidInjectionModule.classを追加します。Suppo
![Dagger 2.11 でAndroid Supportを使ってDIする - もやもやエンジニア](https://cdn-ak-scissors.b.st-hatena.com/image/square/1af1545bd70d41c7bd4c022e35b6fc9d177d5b27/height=288;version=1;width=512/https%3A%2F%2Fimages-fe.ssl-images-amazon.com%2Fimages%2FI%2F51NIkt%252Bq0WL._SL160_.jpg)