Rendering Error while staring up !

+1 White FlameAB · May 16, 2015
I am having a problem like many others; I have seen all other similar questions but they have not cleared my problem.

This is my error:


The following were suggested to resolve the problem:

1) Changing API from 22(5.1.1) to 21(5.0.1)

But I want to work with 5.1.1, so how can I do it without reverting to an older version?

2) Edit the styles.xml file from:

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">


    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

However, after I do this, In, my ActionBarActivity seems to be deprecated:


3) Changing the theme to Holo Light/Holo Dark

But, I would like to use material theme for my app; How can I resolve the problem without changing the theme? (Furthermore, the deprecated error occurs in this solution too)

Hence, how do I solve this problem without any side effects as above and why is this happening?

Post a Reply


Oldest  Newest  Rating
0 Robert Key · May 16, 2015
I get the same deprecated
ActionBarActivity error. 
Let me know if you come up with a solution

0 White FlameAB · May 18, 2015
Hey r0b, 

I have found a temporary solution:

Open the build.gradle located in the "projects" tab:

Gradle Scripts -> build.gradle (Module: app)

Under "dependencies", change the version from 22.1.1 to 22.0.0

However, I do not know why this is done or its possible side effects.
0 Robert Key · May 22, 2015
I'm still having some issues with this error. 
thanks for your help and I will look into more when I have some time...
Thanks for taking the time to help

0 Robert Key · May 22, 2015
I spoke to soon White FlameAB.  Changing the ver to 22.0.0 did seem to clear up the problem.  I did have to change my VDM Nexus 4 API 17 and change the  app them.  (not sure why) .....

+1 Abhinav Moudgil · May 29, 2015
All those having 'ActionBarActivity' deprecated, replace all instances of 'ActionBarActivity' in your code with 

It works.

Read here:
  • 1

Java / Android Development


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

Bucky Roberts Administrator