资源条目app_name已定义

时间:2015-08-17 06:16:07

标签: android android-studio android-developer-api

错误正在显示

D:\workspace\LoginWithSocial\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. [2015-08-17 11:26:16 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. [2015-08-17 11:26:16 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values\styles.xml:21: error: Resource entry app_name is already defined. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values\strings.xml:4: Originally defined here. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values\styles.xml:30: error: Apostrophe not preceded by \ (in Successfully Posted \ '%1$s\'.\nPost ID:  [2015-08-17 11:27:54 - LoginWithSocial]         %2$s) [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. [2015-08-17 11:27:54 - LoginWithSocial]
D:\workspace\LoginWithSocial\res\values\styles.xml:21: error: Resource entry app_name is already defined.

1 个答案:

答案 0 :(得分:0)

更改您的应用程序SDK版本(minimusdk 14和targetsdk版本22)