Android的 - 无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse [英] Android - Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

查看:2529
本文介绍了Android的 - 无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造的Andr​​oid Studio中的Andr​​oid应用程序。当我打开布局编辑器,我看到灰色弹出窗口的布局,它说,它
顶部 无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse

I'm creating an Android app in Android Studio. When I open the layout editor, I see that gray "popup window" on top of the layout, which says that it
Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse.

这发生在我改变渲染版来的 API 15 的(的Andr​​oid 4.0.3 的)。
它的工作一分钟前,但是当我切换回布局,我刚刚得到这个错误。

This happens when I change the "rendering version" to API 15 (Android 4.0.3).
It worked a minute ago, but when I switched back to the layout, I just got this error.

编辑:我用的是 AppCompat
会议的主题是这样定义

I use the AppCompat library.
The theme is defined like this

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar" />

该应用程序工作正常,当我运行它,但不会在编辑器中提供正确的(至少它给我的错误)。

The app works fine when I run it, but doesn't render correctly (at least it's giving me the error) in the editor.

我会很高兴,如果有人可以帮助我。谢谢!

I would be glad if someone could help me with this. Thanks!

推荐答案

更​​新的Andr​​oid Studio来1.1.0版本时,并没有改变任何东西打开一个老项目这个问题发生在我身上。

This problem occured to me when updating Android Studio to version 1.1.0 and opening an old project without changing anything.

对于我来说只是改变了preVIEW的渲染API,以19或以上,使该信息就会消失。

For me only changing the preview's rendering API to 19 or above makes the message disappear.

这篇关于Android的 - 无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆