Android AAPT:检索项的父项时出错

Android AAPT:检索项的父项时出错,android,ionic-framework,Android,Ionic Framework,我一直在努力在安卓手机上发布我的ionic应用程序。当我执行ionic build android时,我得到以下错误: :processDebugResources C:\mobileProject\platforms\android\build\intermediates\res\merged\debug\values-v24\values-v24.xml:3 : AAPT: Error retrieving parent for item: No resource found that ma

我一直在努力在安卓手机上发布我的ionic应用程序。当我执行ionic build android时,我得到以下错误:

:processDebugResources C:\mobileProject\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'.
 FAILED

C:\mobileProject\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: 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 'C:\Users\lma3466\AppData\Local\Android\android-sdk\build-tools\25.0.1\aapt.exe'' finished with non-zero exit value 1


BUILD FAILED

Total time: 1 mins 17.731 secs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
ERROR building one of the platforms: Error code 1 for command: cmd with args: /s,/c,"C:\mobileProject\platforms\android\gradlew cdvBuildDebug -b C:\pmobileProject\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
You may not have the required environment or OS to build this project
Error: Error code 1 for command: cmd with args: /s,/c,"C:\mobileProject\platforms\android\gradlew cdvBuildDebug -b C:\mobileProject\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
这是我安装的mith my SDK manager: 我怎样才能解决这个问题


谢谢

您需要安装与您正在使用的
Android API
相同的
Android SDK构建工具的
revision

显然,您拥有的最新API是安卓8.0.0(API 26)
,但您没有安装安卓SDK构建工具修订版26

还可以尝试在您的终端中删除android和添加android


顺便说一下,您可能不需要安装所有这些系统映像。这些都是巨大的尺寸,你只需要安装你需要的模拟器,通常只有
英特尔x86 Atom系统映像

将Cordova更新到6.5.0解决了我的问题…

我不确定它在爱奥尼亚上是如何工作的,但在安卓的开发中,这意味着目标SDK低于24,因此显然我没有安装版本26和23的材料。。。当我删除版本23时,我在要求我安装时出错…即使安装
Android SDK构建工具版本26
,我也有同样的错误:(是的,刚刚注意到你的gradle正在使用版本25构建工具。看看这是否有帮助