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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM