Open kaki2015 opened 2 years ago
Thanks for the issue submission @kaki2015, will report back with my findings 👀
Hi @kaki2015, in the project you were attempting to add Hilt, could you try adding the following to the project build.gradle file:
hilt {
enableAggregatingTask = false
enableExperimentalClasspathAggregation = true
}
In my repro setup, this caused the app to behave properly. This uses a flag which is marked deprecated so there might be some more investigation to be done here but I was wanted to see if it also solves the problem for you.
@vdelricco I've encountered same error and that setup for Hilt fixed the problem. Thanks!
I want to use your library with together the hilt(DI Library). But, I encountered an error
Unable to instantiate application com.example.myapplication.MainApplication
. Doesn't recognize the Application Class(MainApplication) when building. please help me, thx.Reproduction
Add the settings at
build.gradle
(Project: My_Application).build.gradle
(Module: My_Application.app).Add the implementations.
Create the Application Class.
Add
android:name="com.example.myapplication.MainApplication"
atAndroidManifest.xml
.@HiltAndroidApp
Unable to instantiate application com.example.myapplication.MainApplication: java.lang.ClassNotFoundException: