没有资源的发现,匹配给定的名字“@风格/ Theme.AppCompat.Light” [英] No resource found that matches the given name '@style/Theme.AppCompat.Light'

查看:274
本文介绍了没有资源的发现,匹配给定的名字“@风格/ Theme.AppCompat.Light”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经对这个问题进行了几个小时。从github上下载一个仓库后,在所有.xml文件的唯一错误是:

没有资源的发现,匹配给定的名字@风格/ Theme.AppCompat.Light'

在code是非常简单的,但没有一个简单的答案,我发现,就如何缓解错误。

这里是code(文件RES /价值/ styles.xml):

 <样式名称=AppBaseTheme父=@风格/ Theme.AppCompat.Light>
    <! -  API 14主题自定义可以去这里。 - >
< /风格>
 

该项目位于: https://github.com/erikswed/InstaChatX 我在Windows上,使用Eclipse开普勒

解决方案

 哪些步骤是什么?哪里AppCompat位于何处?
 

下载支持库的位置:

<一个href="http://developer.android.com/tools/support-library/setup.html">http://developer.android.com/tools/support-library/setup.html

如果您使用的是Eclipse:

进入该选项卡上,选择(窗口 - > Android的SDK管理器)。根据临时演员部分中,选中Android的支持库,检查其是否安装。

此后,AppCompat库可在发现:

  Android的SDK /演员/安卓/支持/ V7 / appcompat
 

您需要引用这个AppCompat库在你的Andr​​oid项目。

导入库到Eclipse中。

  1. 右键点击您的Andr​​oid项目。
  2. 选择属性。
  3. 单击添加...在底部添加库。
  4. 选择支持库
  5. 清理并重建项目。

I have been on this problem for a couple hours. After downloading a repository from github, the only error in any .xml file is:

"No resource found that matches the given name '@style/Theme.AppCompat.Light'"

The code is very straightforward, but there is not one straightforward answer I have found, on how to alleviate the error.

here is the code (in file res/values/styles.xml):

<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light">
    <!-- API 14 theme customizations can go here. -->
</style>

The project is located at: https://github.com/erikswed/InstaChatX I am on Windows, using Eclipse Kepler

解决方案

what are the steps for that? where is AppCompat located?

Download the support library here:

http://developer.android.com/tools/support-library/setup.html

If you are using Eclipse:

Go to the tabs at the top and select ( Windows -> Android SDK Manager ). Under the 'extras' section, check 'Android Support Library' and check it for installation.

After that, the AppCompat library can be found at:

android-sdk/extras/android/support/v7/appcompat

You need to reference this AppCompat library in your Android project.

Import the library into Eclipse.

  1. Right click on your Android project.
  2. Select properties.
  3. Click 'add...' at the bottom to add a library.
  4. Select the support library
  5. Clean and rebuild your project.

这篇关于没有资源的发现,匹配给定的名字“@风格/ Theme.AppCompat.Light”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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