Closed personshelldon closed 9 months ago
Hi @personshelldon,
Just to clarify, changing the hilt version from 2.40.5
to 2.41
causes this issue, or were there other changes as well?
Also, do you know which class is actually missing?
@bcorso,
2.40.5
to 2.41
causes the issueEntryPointAccessors.fromApplication(
context,
ChromeCastEntryPoint::class.java
)
Looking at the stack trace and the large drop in your classes.dex
it's likely the generated Dagger component that is missing. I'm not sure why upgrading Hilt should affect that, but you could likely verify if it's an issue with proguard by seeing if adding a keep rule fixes it.
@personshelldon did you find any resolutions?
Upgrade to 2.48.1 fixed this issue.
After the update to Dagger 2.41 project build works correctly but when I try to start the app I have the following error:
I have the custom
Application
class annotated with@HiltAndroidApp
. Also, I am usingapp-startup
jetpack library and the next code to inject some classes intoInitializers
:When I build release version with Hilt 2.40.5 the size of
classes.dex
is 8.5MB when with 2.41 - 5.5MB. The debug build works correctly on both versions.Maybe there is something wrong with Proguard rules?
Environment Android Studio: Android Studio Bumblebee | 2021.1.1 Patch 3 AGP: 7.1.2 Dagget Hilt: 2.40.5 - 2.41