Android Studio-error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind

在遇到这两个问题的时候:

android:TextAppearance.Material.Widget.Button.Inverse找不到或者报错问题

Error retrieving parent for item: No resource found that matches the given name 'android:Wind

在Android Studio SDK升级到android6.0的时候也就是API为23,报错的话,可以用如下方式,删除23的信息。

我用的是5.0.1,所以删除此(C:\Andriod\ADT\sdk\extras\android\m2repository\com\android\support\appcompat-v7)目录下API大于21的文件即可。

之后删除maven-metadata.xml文件中API大于21版本的信息。

 

参考地址

 Finder 中shift+command+g=》/etc 修改hosts

关闭android studio,再/etc/hosts后面加上两行

203.208.49.162 dl.google.com

203.208.49.162 dl-ssl.google.com

posted @ 2015-09-21 16:23  Jimmy_5  阅读(2971)  评论(0编辑  收藏  举报