Ionic 2 or 3 Error: Failed to execute aapt

Is anyOne able to fix this error (Max people looking a solution for this)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processDebugResources’.

Failed to execute aapt

I have tried

  1. ionic cordova platform add android@6.3.0 but not solved
    link to site
    2.another link for site

What is your ionic info output?
Is ionic cordova requirements happy?

Thank you for your reply
here is ionic info details

cli packages: (C:\Users\user1\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v7.9.0
npm               : 5.5.1
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\user1\AppData\Local\Android\sdk

Misc:

backend : pro

and requirements

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-25,android-23,android-22
Gradle: installed C:\Program Files\Android\Android Studio1\gradle\gradle-3.2\bin\gradle

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems. - current version would be 7.1.x here.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: How to update Cordova CLI, Platforms and Plugins · ionic.zone