2

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?

Edric
  • 24,639
  • 13
  • 81
  • 91
logumanov
  • 139
  • 2
  • 11
  • You installed 21 SDK, the updated support library in your SDK Manager? – jlindenbaum Oct 18 '14 at 01:01
  • @jlindenbaum Yes. Should I rollback to 20? – logumanov Oct 18 '14 at 01:12
  • No idea, it's been so long since I used Eclipse that I can't debug it properly. You've reloaded it, cleaned the project, etc. etc.? I don't think 21 is the problem, seems to be working fine for me on Android Studio. – jlindenbaum Oct 18 '14 at 01:19
  • @jlindenbaum Yes, I've reloaded eclipse, cleaned the project, tried to add build paths and done other different actions that I've found in the Internet. Nothing works, but setting up the minimum sdk above 14. – logumanov Oct 18 '14 at 01:27

1 Answers1

3

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.

Jerry101
  • 12,157
  • 5
  • 44
  • 63