primaree icon indicating copy to clipboard operation
primaree copied to clipboard

Not able to use PrimareeApplication with Hilt

Open soulgen opened this issue 3 years ago • 4 comments
trafficstars

error: onCreate() in Hilt_App cannot override onCreate() in PrimareeApplication

soulgen avatar Dec 22 '21 08:12 soulgen

Hey! Thanks for the report. I will try to reproduce but if you have a sample project or just a code snippet I will appreciate if you share it here.

int02h avatar Jan 14 '22 13:01 int02h

I've tried it on the :sample application in the following way:

@HiltAndroidApp
class App : PrimareeApplication() {
...
}

and it works as expected.

int02h avatar Jan 17 '22 20:01 int02h

I can also see this is an issue - Hilt does not appear to like onCreate being made final. Perhaps it was a change to the Hilt lib, in the latest version (2.44) it's a problem

danielwilson1702 avatar Oct 11 '22 16:10 danielwilson1702

@danielwilson1702 could you please provide a sample project to reproduce it?

int02h avatar Nov 30 '22 12:11 int02h