How to import the packages from https://google.github.io/dagger/api/2.12/dagger/android/package-summary.html into Android Studio Project? I was trying for a while but didnt get it
Asked
Active
Viewed 92 times
2 Answers
1
// Add Dagger dependencies
dependencies {
implementation 'com.google.dagger:dagger:2.x'
annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
}
If you're using classes in dagger.android you'll also want to include:
implementation 'com.google.dagger:dagger-android:2.x'
implementation 'com.google.dagger:dagger-android-support:2.x' // if you use the support libraries
annotationProcessor 'com.google.dagger:dagger-android-processor:2.x'

Basi
- 3,009
- 23
- 28
0
Add on your gradle file:
dependencies {
implementation "com.google.dagger:dagger:2.13"
kapt "com.google.dagger:dagger-compiler:2.13"
}

Bruno Martins
- 1,347
- 2
- 11
- 32
-
I already have those, but for example when I want to use AndroidInjectionModule I get "Unresolved Reference" – Nita Ioan Madalin Apr 10 '19 at 11:21