美文网首页
Theme.AppCompat.Light的解决方法报错

Theme.AppCompat.Light的解决方法报错

作者: Gen哥哥 | 来源:发表于2019-04-16 00:12 被阅读0次

    安卓开发中Theme.AppCompat.Light的解决方法

    styles.xml中提示如下错误,这是版本问题。

    error: Error retrieving parent for item: No resource found that matches the given name

    'Theme.AppCompat.Light'.

    解决方法:

    在Eclipse中打开任意一个.java文件,输入  android.R.style.  这时你会看到一个提示列表,仔细看看,再对比一下,看哪个与原有的最接近就选择哪个。用将下划线替换成"."就可了。将改为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"

    同理,将改为

    阅读(7514)| 评论(4)

    相关文章

      网友评论

          本文标题:Theme.AppCompat.Light的解决方法报错

          本文链接:https://www.haomeiwen.com/subject/hqzgjttx.html