Eclipse开发Android时出现No resource found that matches the given name xml问题原因以及解决方法

Eclipse开发Android时出现No resource found that matches the given name xml问题原因以及解决方法,第1张

Eclipse开发Android时出现No resource found that matches the given name ‘Theme.AppCompat.Light’.styles.xml问题原因以及解决方法

styles.xml文件中< style name=“AppBaseTheme” parent=“Theme.AppCompat.Light”>
提示如下错误:

Description Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name ‘Theme.AppCompat.Light’. styles.xml /Show/res/values line 7 Android AAPT Problem

原因

版本错误

解决方法

<style name="AppBaseTheme" parent="Theme.AppCompat.Light">

改为

<style name="AppBaseTheme" parent="android:Theme.Light">

同理,将

<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">

改为

<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">

即可正常运行。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/langs/923803.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-16
下一篇 2022-05-16

发表评论

登录后才能评论

评论列表(0条)

保存