You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ntiations.
The instruction invokespecial is also used to invoke constructors and perform object instantiation. This CL fixes Hilt's transform to not change the owner of such instructions even if the owner is the older superclass since they are instantiating an object that happens to be the of the same type as the 'old' superclass.
Fixes#2662
RELNOTES=Fix an issue in Hilt's bytecode transform that would cause classes to fail validation if they contained an instantiation of an object whose type is the same as the superclass of the @androidentrypoint annotated class.
PiperOrigin-RevId: 378309129
…ntiations.
The instruction invokespecial is also used to invoke constructors and perform object instantiation. This CL fixes Hilt's transform to not change the owner of such instructions even if the owner is the older superclass since they are instantiating an object that happens to be the of the same type as the 'old' superclass.
Fixes#2662
RELNOTES=Fix an issue in Hilt's bytecode transform that would cause classes to fail validation if they contained an instantiation of an object whose type is the same as the superclass of the @androidentrypoint annotated class.
PiperOrigin-RevId: 378309129
…ntiations.
The instruction invokespecial is also used to invoke constructors and perform object instantiation. This CL fixes Hilt's transform to not change the owner of such instructions even if the owner is the older superclass since they are instantiating an object that happens to be the of the same type as the 'old' superclass.
Fixes#2662
RELNOTES=Fix an issue in Hilt's bytecode transform that would cause classes to fail validation if they contained an instantiation of an object whose type is the same as the superclass of the @androidentrypoint annotated class.
PiperOrigin-RevId: 378309129
Version: 2.36
Custom views, that use
@AndroidEntryPoint
annotation crash in runtime with cryptic error message.Code of the custom view:
Error message:
Also this view crashes with very similar error:
The problem seems to be creating
LinearLayout
within a view that extendsLinearLayout
, orFrameLayout
within a class that extendsFrameLayout
etc.I have prepared an example project for you to test it on:
https://github.com/lukas1/HiltViewBug
The text was updated successfully, but these errors were encountered: