No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这是因为你的progject structer 是选的 API22 ,但是某个库需要23来编译,所以你改成23就行了
[img]http://dl2.iteye.com/upload/attachment/0115/5088/e7decb83-d4c4-3114-8e23-46327485a6b2.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0115/5090/968f510c-9e76-38bc-9b95-72785babe158.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0115/5092/3e38a0a2-ceb7-334e-a1e6-0b5724d1e07d.png[/img]
http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name
我项目用了cast,然后cast 第三方库里有个 compile 'com.google.android.gms:play-services-cast:8.4.0'
然后build出错,
[img]http://dl2.iteye.com/upload/attachment/0115/5158/1d295832-e457-3197-9511-e0a784f15180.png[/img]
后来换成 7.8.+ 就可以build了,但是这不是原因,原因还是在于两个playservice不一致导致的。 主项目里换成8.4.0 也可以解决这问题
这是因为你的progject structer 是选的 API22 ,但是某个库需要23来编译,所以你改成23就行了
[img]http://dl2.iteye.com/upload/attachment/0115/5088/e7decb83-d4c4-3114-8e23-46327485a6b2.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0115/5090/968f510c-9e76-38bc-9b95-72785babe158.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0115/5092/3e38a0a2-ceb7-334e-a1e6-0b5724d1e07d.png[/img]
http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name
我项目用了cast,然后cast 第三方库里有个 compile 'com.google.android.gms:play-services-cast:8.4.0'
然后build出错,
[img]http://dl2.iteye.com/upload/attachment/0115/5158/1d295832-e457-3197-9511-e0a784f15180.png[/img]
后来换成 7.8.+ 就可以build了,但是这不是原因,原因还是在于两个playservice不一致导致的。 主项目里换成8.4.0 也可以解决这问题
本文介绍了如何解决在Android开发过程中遇到的编译错误,特别是当使用特定版本的库与项目API级别不匹配时出现的问题。通过调整项目的API级别或者更换兼容的库版本可以有效解决此类错误。
1793

被折叠的 条评论
为什么被折叠?



