检索项目的父项时出错:找不到与给定名称匹配的资源' android:TextAppearance.Material.Widget.Button.Borderless.Colored

时间:2017-02-12 12:50:46

标签: android cordova ionic-framework

我有离子项目我正在

/home/manish/Softwares/cordova/maApp/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3 : AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

/home/manish/Softwares/cordova/maApp/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4 : AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.


FAILURE:  FAILED
Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/manish/android-sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

升级到Android SDk Tools 25.2.5后,我收到此错误消息。

ionic -v
1.7.14

Cordova 1.6.0

2 个答案:

答案 0 :(得分:1)

在您模块的应用中,查看build.gradle区块中的dependencies

compile 'com.android.support:appcompat-v7:25.0.0'

确保它与compileSdkVersion块中的android匹配:

    compileSdkVersion 25

看看: Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

答案 1 :(得分:-1)

在compileSdkVersion,targetSdkVersion和com.android.support:appcompat-v7版本号中升级gradle文件可能会解决您的问题 我将它们升级到26+并解决了这个问题 compileSdkVersion 26 targetSdkVersion 26 编译' com.android.support:appcompat-v7:26.1.0'