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?

Post a Reply


- page 1
Oldest  Newest  Rating
+1 Suson Waiba · October 19, 2015
+1 Suson Waiba · October 19, 2015
This is what happening on my Android Studio 1.4 while changing app theme to Material Light !! what to do, to fix this problem.? it is annoying me.
0 Gary Whitney · October 16, 2015
I ran into a similar problem last week . It turned out the SDK manager did not install the support library.

I know this doesn't tell how to fix your problem but I am not an Android Studio expert and I really hate when I have to focus on the IDE instead of writing code.

Is your blank template extending Activity or one of the other Activity descendants? Try changing to plain old Activity and see what happens.
0 Gabriel James · October 17, 2015
Check your activity.XML to choose proper layout check ur spellings
0 Gary Whitney · October 17, 2015
I just was working on a Splash screen and following an example in a book.
The App failed to start because I copied a style tag that began with "android:Theme" but my activity was using AppCompat.theme.

The point is the style you defined for your theme may not be compatible with the type of activity.

Are you simply changing your theme using the theme icon when you are in Design view? That should be a safe way to make the rendering change styles.
0 Gary Whitney · October 17, 2015
I just notice the note on your screen capture.
Check your layout in Text view. the note indicates you are missing the Layout_width and or layout_height attribute.
0 Suson Waiba · October 19, 2015
You can solve it by clicking on >> Refresh << button at in line of zoom + and zoom - !! something like refresh icon is  there.! I had that problem and solve by doing refresh. OR goto File > Invalidate Caches / Restart... || hop this helped.!
0 Gary Whitney · October 19, 2015
I think it might be the support library is not loaded.
I see you are using the latest  version 23 and the exception error states you need to use appCompat lib.

Click the SDK Manger icon and then select SDK Tools.
Is the support library installed?
Mine wasn't and I had a similar problem.
0 Mats Braa · October 19, 2015
Having the exact same problem as Suson Waiba. I've also installed the Android support library which did not fix the problem. 
0 Suson Waiba · October 20, 2015
I have download all the suport lib and still the same problem. but works with default app theme. then if you change to material light or dark or another pre lib ..! it shows error. not yet got solution. if you have one. please share.
  • 1
  • 2

Java / Android Development


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

Bucky Roberts Administrator