appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
来源:互联网 发布:类似于prisma的软件 编辑:程序博客网 时间:2024/05/15 13:05
今天晕死了
将工作区里的appcompat_v7删除掉了, 然后随意新建了一个工程,因为已经升级到5.0了,appcompat_v7内容有所改变,
以前的工程引用旧的appcompat_v7的某些属性在新的里面找不到,就都报错了
捣腾了两小时,解决方法如下:
project.properties中target=android-21 意思是必须是5.0来编译
新建一个min-sdk小于14的工程A,会有appcompat_v7生成
将A中的对应values目录下的style的内容,相应的复制到 原有工程的style里面
再clean一下,基本解决。
如果某些没用到的系统style依然报错,删除它
如果某些引用的系统的图片、color什么的没有,就换一个,或者删除掉
----------------------------------------新发现------------------------------------
新建的工程,因为引用了5.0的style,所以target需要等于21。
若想使用target<20,则不能引用5.0的style,删除res下引用了5.0的style定义。
更改manifest.xml中application的theme,如android:theme="@android:style/Theme.Black"
----------------------------------------关于Android Studio的处理------------------------------------
跟Eclipse一样,要编译5.0及以上, 编译版本和构建工具都要在api-21以上
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name的解决方法
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name: androidXX
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
- appcompat_v7\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the gi
- v7-appcompat\res\values-v21\themes_base.xml:139: error: Error: No resource found that matches
- appcompat_v7\res\values-v21\themes_base.xml:158: error: Error: No resource
- 创建helloWorld app,报错workspace\appcompat_v7\res\values-v21\styles_base.xml No resource found that matc
- \res\menu\main.xml:3: error: Error: No resource found that matches the given name (at 'title' with
- No resource found that matches the given name
- 导入文件No resource found that matches the given name
- No resource found that matches the given name 'Theme.AppCompat.
- No resource found that matches the given name
- No resource found that matches the given name 9png
- No resource found that matches the given name
- No resource found that matches the given name 'android:Widget....
- JSON c语言开发指南
- TQ2440,学习笔记之链接器脚本
- 基于友善之臂ARM-tiny4412--uboot源码分析
- The Log-Structured Merge-Tree(译)
- 架构之路(四):测试驱动
- appcompat_v7/res/values-v21/themes_base.xml No resource found that matches the given name
- 有源、无源蜂鸣器的区别_20160220
- leetcode--Longest Increasing Subsequence
- 189. Rotate Array
- android xmpp
- 1025. PAT Ranking (25)
- jQuery基础
- 观察者模式
- C++例程与Java例程的对比