问题
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