最新消息:20210917 已从crifan.com换到crifan.org

[已解决]Android项目中编译蒲公英SDK失败:values-v23.xml Error retrieving parent for item No resource found that matches the given name

Android crifan 1636浏览 0评论

参考:

蒲公英 – 文档中心 – Android SDK 集成指南

去android项目中,加了:

compile ‘com.pgyersdk:sdk:2.4.0’

然后编译出错:

D:\android home\project\sellcar\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Inverse’.
Error:(24) Error retrieving parent for item: No resource found that matches the given name ‘android:Widget.Material.Button.Colored’.
Error:Execution failed for task ‘:app:processDebugResources’.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\20.0.0\aapt.exe” finished with non-zero exit value 1

pgy values-v23.xml Error retrieving parent for item

解决Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse问题 – yao伟斌 – 博客频道 – CSDN.NET

Can’t Find Theme.AppCompat.Light for New Android ActionBar Support – Stack Overflow

android – Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23 – Stack Overflow

Android Studio – Appcompat build fail values-v23/styles_bases.xml – Stack Overflow

然后:

蒲公英 – 文档中心 – SDK 下载

看到了:

Android SDK

当前版本:V2.4.2 (2016.08.17)
更新历史: 
版本:V2.4.2 (2016.08.17) 
修复了更新检查在服务器不稳定情况下的崩溃
版本:V2.4.1 (2016.07.20) 
修复了sdk域名找不到的异常报错
版本:V2.4.0 (2016.07.14) 
增加自定义反馈信息
版本:V2.3.7 (2016.06.22) 
修复json数据为空bug
版本:V2.3.4 (2016.06.16) 
修复弱网络下的bug
版本:V2.3.3 (2016.06.13) 
修复更新的bug
版本:V2.3.0 (2016.06.07) 
兼容Android 6.0。
修改HttpClient为HttpURLConnection。 
版本:V2.2.2 (2015.09.18) 
FeedbackActivity支持沉浸式。
修复截屏有时不正确的bug。 

然后去降低版本,比如:

compile ‘com.pgyersdk:sdk:2.2.2’

就可以了。

-》这样就不会依赖于android 6.0的v23了

-》就可以正常编译,而无需把当前的target从v21换成v23了。

转载请注明:在路上 » [已解决]Android项目中编译蒲公英SDK失败:values-v23.xml Error retrieving parent for item No resource found that matches the given name

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.186 seconds, using 23.36MB memory