无法在Eclipse中创建新的Android项目

时间:2016-06-19 19:22:38

标签: android eclipse

当我尝试在Eclipse中创建一个新项目时,我收到以下错误:

[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] 

1 个答案:

答案 0 :(得分:0)

您可以尝试以下任一解决方案:
- 开始使用Android Studio而不是eclipse
- 将您的AppcompatActivity更改为Activity(例如公共类MainActivity extends Activity)
- 更改您的应用主题以扩展AppCompat主题