v

    Vivekpanchal64

    1 week ago
    Hi guys i have migrated from dagger to dagger HILT but getting this issue where ever i am passing context
    Hilt ClassCastException: ViewComponentManager$FragmentContextWrapper cannot be cast to AppCompatActivity
    can anyone help ?
    Zsolt.bertalan

    Zsolt.bertalan

    1 week ago
    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

    Vivekpanchal64

    5 days ago
    is there any permanent solution to this ? as we didn't face any issue before migration to HILT ?