0

When I try to create a new project in Eclipse, I am getting the following error:

[2016-06-20 00:49:49 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:49 - Activitybasic] 
[2016-06-20 00:49:49 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:49 - Activitybasic] 
[2016-06-20 00:49:49 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:49:49 - Activitybasic] 
[2016-06-20 00:49:49 - basics] C:\Users\AKHIL\Documents\Android\basics\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:49 - basics] 
[2016-06-20 00:49:49 - basics] C:\Users\AKHIL\Documents\Android\basics\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:49 - basics] 
[2016-06-20 00:49:49 - basics] C:\Users\AKHIL\Documents\Android\basics\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:49:49 - basics] 
[2016-06-20 00:49:50 - testing] C:\Users\AKHIL\Documents\Android\testing\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:50 - testing] 
[2016-06-20 00:49:50 - testing] C:\Users\AKHIL\Documents\Android\testing\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:49:50 - testing] 
[2016-06-20 00:49:50 - testing] C:\Users\AKHIL\Documents\Android\testing\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:49:50 - testing] 
[2016-06-20 00:53:26 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:53:26 - Activitybasic] 
[2016-06-20 00:53:26 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:53:26 - Activitybasic] 
[2016-06-20 00:53:26 - Activitybasic] C:\Users\AKHIL\Documents\Android\Activitybasic\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:53:26 - Activitybasic] 
[2016-06-20 00:55:36 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:55:36 - test2] 
[2016-06-20 00:55:36 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:55:36 - test2] 
[2016-06-20 00:55:36 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:55:36 - test2] 
[2016-06-20 00:55:38 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:55:38 - test2] 
[2016-06-20 00:55:38 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-06-20 00:55:38 - test2] 
[2016-06-20 00:55:38 - test2] C:\Users\AKHIL\Documents\Android\test2\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-06-20 00:55:38 - test2] 
Pang
  • 9,564
  • 146
  • 81
  • 122
akhilsreekar
  • 196
  • 8
  • 2
    You shoud not use eclipse, use Android Studio https://developer.android.com/studio/index.html – Rocket Jun 19 '16 at 19:24

1 Answers1

0

You can try either of these solutions:
- Start using Android Studio instead of eclipse
- change your AppcompatActivity to Activity (say public class MainActivity extends Activity)
- change your app theme to extend AppCompat theme

Leo DroidCoder
  • 14,527
  • 4
  • 62
  • 54