I've faced a questionable error during my work with android studio. Everytime I start studio and create a new project there is another render error
Failed to load AppCompat ActionBar with unknown error.
I do not clearly understand what does it mean, but it is easy to deal with it via replacing
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
but evertime I add new element to the layout, there is error
I have found a solution, that helped almost everybody except me. But changing theme now doesn't solve the problem.
If anybody know how to deal with it please help.
In your app gradle under dependencies use this:
if you heven't already.
You can copy the style name
floatingactionbuttonstyle
and included it in your apptheme.Add this line
And finally theme look like this
Here some other few elements am added in styles for others.
You can add default style with style name. Then you resolve this error.