升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Material.A

升级sdk 到5.0时,创建项目时会多创建一个库项目,叫appcompat_v7。

创建完成后,这个项目可能会报错,诸如出现:No resource found that matches the given name ‘android:Widget.Material.ActionButton‘等错误。

下面是一些解决方案:

解决方案1:

使用sdk manager下载以下内容:

解决方案2:

如果你不想创建appcompat_v7,你可以在创建项目时将minimum Required SDK设置为4.1以上,这时就不再生成

appcompat_v7项目了,然后你再去清单文件中将minSdkVersion还原为8就行了.

参考资料:

1.http://stackoverflow.com/questions/26457096/appcompat-v7-r21-returning-error-in-values-xml

2.http://stackoverflow.com/questions/26530415/error-in-styles-base-xml-file-android-app-no-resource-found-that-matches-the

升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Material.A

时间: 2024-08-02 05:25:17

升级android sdk到5.0时,创建项目出现错误:No resource found that matches the given name 'android:Widget.Material.A的相关文章

Android - 错误:"No resource found that matches the given name android:Theme.Material"

Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址: http://blog.csdn.net/caroline_wendy 错误: "No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'" 原因是: build.g

Android - 错误:"No resource found that matches the given name android:Theme.Material"

Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址: http://blog.csdn.net/caroline_wendy 错误: "No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'" 原因是: build.g

【Android】Android sdk content loader 0%

前天用 Eclipse 突然遇到了这个问题...重启了好几次都不行,百度了一下,原来之前有不少人遇到过.后来找到了一篇文章,其中的方法二(如下): 方法二(关闭后,拔网线再重启): 如果用最省事的方法一不能解决问题时,拔掉网线后再重启Eclipse看看.有时候也能够得到解决. 成功解决了我的问题! 原文链接:Android sdk content loader 0%的解决方案

WinXP SP3 下安装 Android SDK,模拟器启动时出现错误...

============问题描述============ WinXP SP3 下安装 Android SDK,模拟器启动时出现错误. 安装了两个版本的 Android SDK,都是一样的. installer_r23.0.2-windows.exe 和 installer_r22.6-windows.exe 请问怎么可以解决这个问题?多谢!!! ============解决方案1============ 这个自带的模拟器太慢,下一个bluestakes或genymotion吧 =========

Android sdk content loader 0%的解决方案

Eclipse在启动时,经常会碰到半天启动不起来的情况,罪魁祸首就是“Android sdk content loader 0%”,题主经常是受这玩意的百般折磨,大早上一来就被这扫了工作的激情,浪费了大把时间.Eclipse初始化不成功就干不了活,所以这事必须得解决.经过自己多次亲身测试,发现没有一种办法的百试百灵的,只有通过以下几种方案来一步一步地解决. 方法/步骤 方法一(关闭后重启): 遇到Eclipse右下角一直显示“Android sdk content loader 0%”的情况时,

eclipse一直卡住,出现 “android sdk content loader 0%” 卡住的错误分析及解决方法

分析:这种问题之前没有遇到过,也不知道什么原因,直接去网上查询,打开www.stackoverflow.com,输入要查询问题的关键词,我们输入 “android sdk content loader 0%”,查询结果如下:      我们找到投票数最多的这个回答: 以下是我所找到的有效的解决方法:1.首先确保 eclipse 已经关闭.如果 eclipse 还处于打开状态,请从任务管理器的进程列表中杀死 eclipse .2.在 Windows 上可以通过 %USERPROFILE%/,在 L

[转帖] ADT卡在Android SDK Content Loader 0的解决办法

原址:http://blog.happyhls.me/2014/11/16/adt%E5%8D%A1%E5%9C%A8android-sdk-content-loader-0%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/ 在实验室打开ADT发现整个ADT一直卡在Android SDK Content Loader: (0%),无法使用,如图所示: 在网上搜索,发现如下操作可以解决,参考http://stackoverflow.com/question

Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl'

错误信息:Error:Execution failed for task ':app:compileDebugAidl'. > java.lang.IllegalStateException: aidl is missing from '/Users/renguodong/Library/Android/sdk/build-tools/26.0.2/aidl' 出错分析:网上查了一些信息,给出的都是要把BuildTools Version和Compile Sdk Version一致.可是我的已经

【笔记】android sdk集成的eclipse中导入项目

android sdk集成的eclipse中导入项目 想要把旧的ADT项目,一模一样的导入进来,需要: 1.把项目放到,非当前ADT的workspace目录下: 2.从Project中Import,选择Existing Android Code into Workspace,就可以正常导入了. 3.导入后,右击MainActivity->Refactor -> Rename,即可去把项目名从默认的MainActivity改为你真正的项目的名字.