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

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

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

转载于:https://www.cnblogs.com/bkycjj/p/4826523.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值