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
This causes a crash when attempting to snapshot the ReferencedXMLPreview:
android.view.InflateException: Binary XML file line #8 in <>:layout/view_basic_layout_used: Binary XML file line #8 in <>:layout/view_basic_layout_used: Error inflating class <>.BasicLayoutView
Caused by: android.view.InflateException: Binary XML file line #8 in <>:layout/view_basic_layout_used: Error inflating class <>.BasicLayoutView
Caused by: java.lang.reflect.InvocationTargetException
<...>
Caused by: java.lang.IllegalStateException: class <>.BasicLayoutView, Hilt view must be attached to an @AndroidEntryPoint Fragment or Activity.
at dagger.hilt.android.internal.managers.ViewComponentManager.getParentComponentManager(ViewComponentManager.java:138)
at dagger.hilt.android.internal.managers.ViewComponentManager.createComponent(ViewComponentManager.java:86)
at dagger.hilt.android.internal.managers.ViewComponentManager.generatedComponent(ViewComponentManager.java:77)
<...>
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
A client recently encountered an issue running a compose preview for a view that requires a hilt-aware Activity/Fragment to bind to. Minimal repro:
Minimal XML view with the binding:
This causes a crash when attempting to snapshot the
ReferencedXMLPreview
:The text was updated successfully, but these errors were encountered: