Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

I'm learning Android development and decided to add Dagger Hilt to my project. I've been struggling for a week with the `:app:hiltAggregateDepsDebug` task error. It throws: `Unable to find method '...
coolzzz's user avatar
0 votes
0 answers
35 views

Description I'm facing a Hilt compilation error only when creating a release build (with minifyEnabled true). The debug build compiles and runs fine. Error message: error: ComponentProcessingStep was ...
Dinesh Sarma's user avatar
2 votes
1 answer
119 views

I’m trying to make a Worker run automatically when the app starts for testing purposes. The idea is that when I open the app, the Worker fetches the list of tracked animes and shows a notification for ...
Sergio García Vico's user avatar
3 votes
1 answer
74 views

Hilt keeps not initializing the Worker just because of sharedPreferences variable here @HiltWorker class AnilistNotificationWorker @AssistedInject constructor( @Assisted private val context: ...
Yusuf Talha Şanlıoğ's user avatar
0 votes
0 answers
65 views

I have a CacheCreation class that prepares config for an OkHttp interceptor. It’s created during DI on app launch, and we currently use runBlocking so the object graph is ready before the first ...
Ajay's user avatar
  • 926
2 votes
1 answer
148 views

With the following implementations, I'm getting unresolved reference errors with hiltViewModel(). Below is a view where I'm trying to implement a hiltViewModel(), the model, and all relevant build ...
mfusco's user avatar
  • 51
0 votes
1 answer
44 views

Architecture Setup I have a multi-module architecture with: Dependency Injection Setup (DataStoreModule): @Module @InstallIn(SingletonComponent::class) object DataStoreModule { private const val ...
Sevban Bayır's user avatar
0 votes
1 answer
104 views

I am currently working on a project that includes an onboarding screen and a profile screen. The onboarding screen is implemented using a ViewModel integrated with Hilt (@HiltViewModel). The ...
Smit Prajapati's user avatar
-1 votes
1 answer
73 views

I want to create multiple, separate databases of the same structure (all using the same RoomDatabase class and DAOs). I'm using Room DB and Hilt, and am using a provider like below to create the ...
Zach's user avatar
  • 685
0 votes
0 answers
77 views

I’m building a Jetpack Compose screen using an MVI pattern (ViewState / ViewEvent / ViewEffect) and Hilt for DI. I have a modal dialog with an input field for a name. The dialog’s composable looks ...
Saif M's user avatar
  • 586
-1 votes
1 answer
86 views

I'm encountering a java.lang.RuntimeException in my Android application, specifically: java.lang.RuntimeException: Cannot find implementation for com.daviddev.passwordmanager.Room.AccountDataDataBase. ...
carson's user avatar
  • 11
2 votes
0 answers
135 views

I'm developing a Nitro Modules native module to integrate an Android SDK into an Expo React Native app. I've successfully created mock functions with the correct typings, but I'm facing issues ...
Vitor Rafael's user avatar
0 votes
1 answer
69 views

I have an Android multi-module project, in which one I a trying to run instrumented tests. My "feature" modules are android libraries and the instrumented tests run correctly. But I have an ...
rolandl's user avatar
  • 1,907
0 votes
0 answers
46 views

I'm trying to inject a Map of strategies into my ViewModel using Hilt. Each strategy is associated with a different table class, and I'm using a custom annotation (TableStrategyKey) as the map key. @...
Mariano Migueles's user avatar
0 votes
0 answers
53 views

I have a interface called TimeZoneMonitor to monitorize Time Zone or Date changes. I also have a UseCase that queries the database, looking for information based on the current system date. The code ...
A. Cedano's user avatar
  • 1,069
0 votes
0 answers
44 views

I'm using Hilt for dependency injection in my Android project. The project builds and runs perfectly on macOS, but I encounter a NullPointerException when building on Windows 10. The error occurs ...
Thành Tâm Cao's user avatar
1 vote
1 answer
53 views

I'm using Hilt, and the MVVM pattern to get content that is in local files in my app. Now I want to add to FileUiState content that references UserData (these are user preferences saved using ...
A. Cedano's user avatar
  • 1,069
2 votes
0 answers
81 views

I'm building an Android app with Kotlin, Jetpack Compose, and Hilt for dependency injection. My app has a KYC flow that spans about 10 screens(has own navigation graph of this flow), each with its own ...
Şahan Şenvar's user avatar
-1 votes
1 answer
58 views

i am using val name = if (!formula.productName?.nameRes.isNullOrBlank()) { stringResource(getStringResId(formula.productName?.nameRes!!)) } else if (!formula.productName?.name.isNullOrBlank()...
Connor's user avatar
  • 1
0 votes
0 answers
136 views

I am trying to integrate Datadog logs into my project and trying to use Hilt DI for the setup. Below code is my app module @Provides @Singleton fun provideDatadogLogger(): Logger { ...
Saurabh Shetty's user avatar
5 votes
1 answer
109 views

I tried to follow the examples in the android documentation but I can't implement the navigation using Navigation Compose, ViewModel and Hilt. No errors are thrown and in the NavigationScreen ...
alexandrade00's user avatar
0 votes
0 answers
29 views

Simple question here: is it possible to get an object initilized through app startup Initializer inside a Hilt module? Let me provide an example. Assume that I've the following Initializer: class ...
Carlo Codega's user avatar
0 votes
0 answers
204 views

I have this compose code who works perfectly: val pagerVM = hiltViewModel( creationCallback = { factory: JourneySummaryPagerViewModel.Factory -> factory.create(selectedIndex.value) }...
Kevin ABRIOUX's user avatar
1 vote
1 answer
50 views

I'm a newbie using MVVM and Kotlin + Jetpack Compose + Room + Hilt, etc. I want to learn how to do things in the right way, and I'm getting into trouble with so much information. I have the following ...
forvas's user avatar
  • 10.3k
3 votes
1 answer
2k views

So I am pretty new to Android Studio, and Android development; my background is Java fullstack. I started by creating a default template from Android Studio and moved my code (and code from a dagger ...
Robert Koch's user avatar

1
2 3 4 5
31