2014-10-18 75 views
2

我发现那Material support library (an updated appcompat-v7) is coming on October 17。 今天我试着创建一个android项目,但我有大约100个连接到Material Design的错误。类似的东西:appcompat_v7错误

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

请帮助我,如何解决这个问题呢?

+0

您安装了21 SDK,SDK Manager中更新的支持库? – jlindenbaum 2014-10-18 01:01:25

+0

@jlindenbaum是的。我应该回滚到20吗? – logumanov 2014-10-18 01:12:37

+0

不知道,自从我使用Eclipse之后,我就无法正确调试它。你已经重新加载它,清理了项目等等?我不认为21是这个问题,在Android Studio上似乎对我很好。 – jlindenbaum 2014-10-18 01:19:47

回答

3

当改变的API V21支持库,你也必须改变你的build.gradle文件中使用

compileSdkVersion 21 
buildToolsVersion '21.0.1' 

问题解决了我。

构建工具版本21.0.1是一个错误修复版本,周五晚上出来修复aapt.exe中的崩溃。

+0

谢谢!构建工具版本21.0.1救了我。 – logumanov 2014-10-18 10:45:56