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

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

问题描述

我正在Android Studio中创建一个Android应用。当我打开布局编辑器时,在布局顶部看到一个灰色的弹出窗口,它表示

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


解析资源@ style / Widget.Holo.Light.ActionMode.Inverse。

Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse.

当我将渲染版本更改为 API 15 Android 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!

推荐答案

在将Android 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.

对我来说,仅将预览的渲染API更改为19或更高版本,消息才会消失。

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

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

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