我得到了一个离子项目
/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科尔多瓦1.6.0
发布于 2017-02-12 21:04:55
在模块的应用程序中,查看dependencies块中的build.gradle:
compile 'com.android.support:appcompat-v7:25.0.0'确保它与android块中的compileSdkVersion匹配:
compileSdkVersion 25发布于 2017-12-12 10:47:28
在compileSdkVersion、targetSdkVersion和com.android中升级gradle文件。支持:appcompat-v7版本号可能会解决您的问题
我把它们升级到了26+并解决了这个问题
compileSdkVersion 26
targetSdkVersion 26
compile 'com.android.support:appcompat-v7:26.1.0'https://stackoverflow.com/questions/42187762
复制相似问题