Hi guys i have migrated from dagger to dagger HILT but getting this issue where ever i am passing co...
v
Hi guys i have migrated from dagger to dagger HILT but getting this issue where ever i am passing context
Copy code
Hilt ClassCastException: ViewComponentManager$FragmentContextWrapper cannot be cast to AppCompatActivity
can anyone help ?
z
You need to use baseContext. Like this: https://stackoverflow.com/a/63460392/1067763 If this is in a library, you have to file a ticket with the library, as it happened to me recently.
v
is there any permanent solution to this ? as we didn't face any issue before migration to HILT ?
264 Views