创建Android项目时出错,error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

问题描述:

创建一个Android应用项目时,需指定其适用的SDK版本,默认如下图:

最低适用版本为:API 8: Android 2.2 (Froyo)

目标版本为:API 21: Android 4.X (L Preview)

编译版本为:API 23: Android 6.0

 Next,Finish后,提示错误:

[2016-05-10 22:42:36 - Hello] D:\ChronusWorkSpace\Hello\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.

问题原因:低版本应用程序不兼容高版本应用程序的外观定义。

简易的解决方法:把最低适用版本提高到 API 14: Android 4.0 (IceCreamSandwich) 或以上。

posted on 2016-05-10 23:43  god with us  阅读(808)  评论(0编辑  收藏  举报