Installieren Sie Dagger 2 in Android Studio

# Add Dagger dependencies
dependencies {
  implementation 'com.google.dagger:dagger:2.x'
  annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
}
# make sure to replace x in 2.x above with the exact version you want to install
# you can find the latest one in the Github link
# https://github.com/google/dagger
Ghaith Alzin