在遇到這兩個問題的時候:
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