更新后安卓工作室中的资源错误:找不到资源
在最近对 Android Studio 进行更新后,我们在编译以前工作过的项目时遇到问题。起初,我们收到以下错误:
/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 中消失了)。
我想做的是解决奇怪的资源错误,但不更新到sdk 23。我现在没有时间重写我们的工具库来使用已经发布的apache http组件的任何新实现。有人有什么想法吗?