Error message when trying to change theme

0 richard Stephen · October 16, 2015
Hello All.

i get this error message anytime i try to change my theme , please how do i resolve this?
/images/forum/upload/2015-10-16/38b5ab62a40fcd02ffe61646cddaacd1.jpg

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Niko Badjar · October 21, 2015
This happens to me as well. Really frustrating, don't know what's causing it.
0 Gary Whitney · October 22, 2015
There are many things that can cause the rendering error message.
Sometimes I get it on a new activity and switch to Text mode then back to Design mode and it's gone.

I don't think yours is so simple. The error is definitely telling you that you need to use an AppCompat Theme, and something about AppBarLayout..


I read somewhere that Material changed the way the ActionBar looks and what it doesn't support.

To better understand your problem
I started a new project ans switched themes (using the icon in Design mode) no problem.
So I am wondering what you are doing different. Do you get the problem if you start a new project with min API16?
Android is constantly evolving and things become depreciated.
* Are you trying to follow and old example that changes the type of Activity?.
* Is your min API using features not supported by Material?

Here are some places to look at for clues.
1. What is your min API?
2. What is your activity.?
Try -  public class MainActivity extends AppCompatActivity {
and
import android.support.v7.app.AppCompatActivity;
3.Check your style
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>

Hope this helps.
0 Stefan Mostert · October 22, 2015
I am experiencing the same problem...
/images/forum/upload/2015-10-22/60a1f7d84ebf9a14f374aee28b705b2c.png
  • 1
  • 2

Java / Android Development

107,195 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator