Top "Dagger-2" questions

Dagger 2 is a dependency injection framework for Java and Android.

Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a …

android kotlin dagger-2 android-coordinatorlayout
How to get Context in Android MVVM ViewModel

I am trying to implement MVVM pattern in my android app. I have read that ViewModels should contain no android …

android mvvm dagger-2 android-context
Dagger 2 error: dependency "cannot be provided without an @Inject constructor" while it actually annotated with @Inject

I've started using Dagger 2 and faced strange issue that looks like a bug to me. I have 3 modules, that are …

android dagger dagger-2
cannot be provided without an @Inject constructor or from an @Provides-annotated method

I am using Android Dagger2 but I am getting the error below. My AppModule class is: @Module public class AppModule { @…

android dagger-2
Dagger 2 subcomponents vs component dependencies

Dagger 1's plus() method is something I used quite often in previous applications, so I understand situations where you might …

dagger dagger-2
UninitializedPropertyAccessException: lateinit property pref has not been initialized

I know a similar question has been answered Here. But that was due to butter knife library problem but my …

android kotlin dagger-2
Dagger 2 - what is the purpose of a @Singleton annotation class

From the dagger 2 Documentation I noticed that you can have a @Singleton annotated class. What is the purpose of marking …

dependency-injection dagger dagger-2
Dagger 2, sometimes on compiling I get "cannot find symbol class DaggerApplicationComponent"

Recent after update Android Studio (2.0.7) (maybe this is the cause) sometimes when building i get that error. Idea is that …

android dagger-2
Set dynamic base url using Retrofit 2.0 and Dagger 2

I'm trying to perform a login action using Retrofit 2.0 using Dagger 2 Here's how I set up Retrofit dependency @Provides @Singleton …

android dagger-2 retrofit2
Dagger 2 injecting Android Application Context

I am using Dagger 2 and have it working however I now need access to the Android Application Context. Its not …

android dependency-injection android-context dagger-2