Android的 - 无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse风格、资源、Widget、Android

由网友(是我入戏太深)分享简介:我创造的Andr​​oid Studio中的Andr​​oid应用程序。当我打开布局编辑器,我看到灰色弹出窗口的布局,它说,它顶部无法解析资源@风格/ Widget.Holo.Light.ActionMode.Inverse 。I'm creating an Android app in Android Studi...

我创造的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.

阅读全文

相关推荐

最新文章