python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Android Dagger/Hilt providers same return value?
I need to know in my Repository whether I have internet connection or not (DB or API), so in my AppModule I use:
@InstallIn(SingletonComponent::class)
@Module
object AppModule {
@Singleton
@P...
CookieMonster
Votes: 0
Answers: 1
Android Room with Dagger 2 in a multi-module
Is there a way or approach to provide a Room DB instance from a module/library which can be consume on any project (app module)?
The problem I am facing is the abstract class that extends RoomDatabase...
Bitwise DEVS
Votes: 0
Answers: 1
Issue with Dagger: cannot be provided without an @Provides-annotated method
I do have a method annotated w/ @Provides, but somehow it's still failing building with this error:
Router1Component.java:13: error: com.nice.AbcServiceClient cannot be provided without an @Provides-a...
Fisher Coder
Votes: 0
Answers: 1
ViewModel injection failing on Dagger + Kotlin Android
class MovieListFragment : Fragment() {
@Inject
lateinit var movieListView: MovieListViewModel
private lateinit var movieListAdapter: MovieListAdapter
private lateinit var binding: ListFragmentBindi...
Minwoo Ju
Votes: 0
Answers: 1