hi guys I have setup hilt two files at package name level for @HiltAndroidApp notation and MainActiv...
a
hi guys I have setup hilt two files at package name level for @HiltAndroidApp notation and MainActivity kotlin file with @AndroidEntryPoint notation. The app builds in android studio well but when I test it on device the app crashed when I remove the @AndroidEntryPoint notation from MainActivity kotlin file the app does not crash when tested on the physical device. What is the issue here
😶 3
c
Did you read the crash logs?
Copy code
java.lang.IllegalStateException: Hilt Activity must be attached to an @HiltAndroidApp Application. Did you forget to specify your Application's class name in your manifest's <application />'s android:name attribute?
a
my bad didn't notice that thanks
👍 1