appcompat_v7 errors

时光毁灭记忆、已成空白 提交于 2019-12-24 02:32:41

问题


I've found out that Material support library (an updated appcompat-v7) is coming on October 17. Today I've tried to create an android project, but I've got about 100 errors connected to the Material design. Something like that:

error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'. styles_base.xml /appcompat_v7/res/values-v21 line 168 Android AAPT Problem

Please, help me, how to resolve this problem?


回答1:


When changing to the API v21 support libraries, you also have to change your build.gradle file to use

compileSdkVersion 21
buildToolsVersion '21.0.1'

That fixed it for me.

Build tools version 21.0.1 is a bug fix release that came out late Friday to fix a crash in aapt.exe.



来源:https://stackoverflow.com/questions/26435306/appcompat-v7-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!