更新后android studio中的资源错误:找不到资源 [英] resource error in android studio after update: No Resource Found

查看:38
本文介绍了更新后android studio中的资源错误:找不到资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最近对 Android Studio 进行更新后,我们在编译之前运行的项目时遇到了问题.起初,我们收到以下错误:

After a recent update to Android Studio, we're having problems getting a project to compile that previously worked. At first we were getting the following error:

/Users/james/Development/AndroidProjects/myapp/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.0/res/values-v23/values-v23.xml
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

我将 gradle 文件中的 sdk 构建目标更新为 23,这使得这个特定问题消失了,但它给我们留下了大量 apache.http 包错误(特别是我们用于 http 内容的大量 apache 包现在在 sdk 23 中消失了).

I updated the sdk build target in our gradle file to 23, which made this specific issue go away, but it left us with a ton of apache.http package errors (specifically, a ton of apache packages we use for http stuff are now gone in sdk 23).

我想做的是解决奇怪的资源错误,但没有更新到 sdk 23.我现在没有时间重新编写我们的工具库来使用任何已发布的 apache http 组件的新实现.有人有什么想法吗?

What I want to do is solve the strange resource error, but without updating to sdk 23. I don't have the time to re-write our tools library right now to use whatever new implementation of apache http components has been issued. Does anyone have any ideas?

推荐答案

将 build.gradle 文件中的 appcompat 版本更改回 22.2.1(或您之前使用的任何版本).

Change the appcompat version in your build.gradle file back to 22.2.1 (or whatever you were using before).

这篇关于更新后android studio中的资源错误:找不到资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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