Android Studio-error: Error retrieving parent for item: No resource found that matches the given nam

在遇到這兩個問題的時候:android

android:TextAppearance.Material.Widget.Button.Inverse找不到或者報錯問題app

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

在Android Studio SDK升級到android6.0的時候也就是API爲23,報錯的話,能夠用以下方式,刪除23的信息。google

我用的是5.0.1,因此刪除此(C:\Andriod\ADT\sdk\extras\android\m2repository\com\android\support\appcompat-v7)目錄下API大於21的文件便可。spa

以後刪除maven-metadata.xml文件中API大於21版本的信息。.net

 

參考地址xml

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

關閉android studio,再/etc/hosts後面加上兩行ssl

203.208.49.162 dl.google.comget

203.208.49.162 dl-ssl.google.com

相關文章
相關標籤/搜索