创建的应用程序中的错误

时间:2014-12-29 07:19:30

标签: java android eclipse sdk

我已经安装了Eclipse。当我创建新的Android应用程序时,style.xml和主类中有很多错误:

error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:05 - testing] D:\android\testing\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:05 - testing] 
[2014-12-29 12:09:05 - testing] D:\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'.
[2014-12-29 12:09:05 - testing] 
[2014-12-29 12:09:05 - testing] D:\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'.
[2014-12-29 12:09:05 - testing] 
[2014-12-29 12:09:43 - appcompat_v7] Project has no project.properties file! Edit the project properties to set one.
[2014-12-29 12:09:46 - Asdfghjk] D:\android\Asdfghjk\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:46 - Asdfghjk] 
[2014-12-29 12:09:46 - Asdfghjk] D:\android\Asdfghjk\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:46 - Asdfghjk] 
[2014-12-29 12:09:46 - Asdfghjk] D:\android\Asdfghjk\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2014-12-29 12:09:46 - Asdfghjk] 
[2014-12-29 12:09:49 - Asdfghjk] D:\android\Asdfghjk\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:49 - Asdfghjk] 
[2014-12-29 12:09:49 - Asdfghjk] D:\android\Asdfghjk\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2014-12-29 12:09:49 - Asdfghjk] 
[2014-12-29 12:09:49 - Asdfghjk] D:\android\Asdfghjk\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2014-12-29 12:09:49 - Asdfghjk] 

2 个答案:

答案 0 :(得分:0)

确保您的构建目标设置为正确的API级别。

请参阅http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

答案 1 :(得分:0)

创建没有默认活动的应用程序。它将解决您的问题