Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio Dolphin Render ui issue

I updated my android studio to Dolphin. I have some ui issue: 1.Infinite cycle trying to resolve '?textAppearance': Render may not be accurate. 2.Failed to find '@android:attr/textAppearance' in current theme.

enter image description here

like image 932
Novruz' Cəfərov Avatar asked May 03 '26 06:05

Novruz' Cəfərov


1 Answers

This happens for a reason: There may indeed be styles missing.
Theme.MaterialComponents.Bridge & Widget.MaterialComponents

For example, when applying android:theme in XML:

android:theme="@style/AppTheme.FloatingActionButton"

But the referenced material style does not define any @android:attr/textAppearance:

<style name="AppTheme.FloatingActionButton" parent="Widget.MaterialComponents.FloatingActionButton">
    <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
</style>

The style attribute might be missing somewhere else, than where the render error occurs.
When FragmentContainerView won't render, see app:startDestination and its tools:layout.
Searching for string android:theme in directory res/layout should turn up all the references.

like image 94
Martin Zeitler Avatar answered May 04 '26 19:05

Martin Zeitler