参考:
去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 Studio – Appcompat build fail values-v23/styles_bases.xml – Stack Overflow
然后:
看到了:
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