Rendering problems when changing Theme

+2 Billy Thekid · December 23, 2015
Hi, so I've decided to start following Bucky's tutorials, but right from the start, whenever I try to change the theme, I get the following  Rendering error:

The following classes could not be instantiated:
- (Open Class, Show Exception, Clear Cache)
- (Open Class, Show Exception, Clear Cache)
- (Open Class, Show Exception, Clear Cache)

Even if I don't change the theme, when I delete the default "Hello word" text, I get this error. Everything works as it should when i run AVD but it doesn't in the preview tool. I have already read couple of posts about this but none of them worked.
I've tried:  
1) adding "Base" in front of the theme name in styles.xml 
2) Lowering the API
3) Updating some SDK tools
4) Not using 2.2 Froyo as Bucky did, but using the same version (23) as the API.

Any help please ?

Post a Reply


Oldest  Newest  Rating
0 Gary Whitney · December 23, 2015
There have been a lot of changes since API 21.
Try this:
* Create an Empty Activity.
* Don't change the type of activity i.e. leave AppCompat
* See that little droid icon with 23 next to it. Change it to 21. That is what was used at the time the tutorials were created.

Post a reply if this worked for you.
0 Inno Komp · December 24, 2015
Thanks Gary Whitney. It worked.
  • 1

Java / Android Development


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

Bucky Roberts Administrator