Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to find '@attr/TextAppearanceButton' in current theme

I want to add Extended floating action button to my android project app but got an error saying failed to find @attr/TextAppearanceButton in current theme. I have implemented material dependency in build.grade module. I am new to Android Development. Please I need a help 🙏🏾.

like image 709
Leslie Joe Avatar asked Oct 27 '25 11:10

Leslie Joe


2 Answers

change your styles.xml to like below

<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
like image 61
Sigit Avatar answered Oct 29 '25 09:10

Sigit


I was also facing the issue of rendering xml files after updating my android studio to DOPLPHIN.

In your xml, add android:theme="@style/YOUR_MATERIAL_THEME" to your parent layout and all rendering issues will be gone.

                   OR

In your manifest file under <application add android:theme="@style/YOUR_MATERIAL_THEME"

I hope this fixes your issue.

like image 22
Sourabh Bhatt Avatar answered Oct 29 '25 07:10

Sourabh Bhatt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!