# Ionic 2 error build android app

**URL:** <https://forum.ionicframework.com/t/ionic-2-error-build-android-app/124088>\
**Category:** ionic-v3\
**Created:** [March 10, 2018, 7:00am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android-app/124088 "2018-03-10T07:00:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedmedhat187](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@ahmedmedhat187](https://forum.ionicframework.com/u/ahmedmedhat187)\
**Post date:** [March 10, 2018, 7:00am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android-app/124088/1 "2018-03-10T07:00:29Z")

</div>

when build android app :

> ionic cordova build android

FAILURE: Build failed with an exception.

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

> com.android.ide.common.process.ProcessException: Failed to execute aapt

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
BUILD FAILED  
Total time: 7.868 secs  
Error: cmd: Command failed with exit code 1 Error output:  
ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings  
ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex  
FAILURE: Build failed with an exception.
- What went wrong:  
Execution failed for task ‘:processDebugResources’.

> com.android.ide.common.process.ProcessException: Failed to execute aapt

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  
[ERROR] An error occurred while running cordova build android (exit code 1).

> ionic cordova requirements

Requirements check results for android:

Java JDK: installed 1.8.0  
Android SDK: installed true  
Android target: not installed  
Please install Android target / API level: “android-26”.

Hint: Open the SDK manager by running: “E:\Android\sdk\tools\android.bat”  
You will require:

1. “SDK Platform” for API level android-26
2. "Android SDK Platform-tools (latest)
3. “Android SDK Build-tools” (latest)  
Gradle: installed C:\Program Files\Android\Android Studio1\gradle\gradle-4.1\bin\gradle  
Error: Some of requirements check failed

how to solve this problem

---

<div class="post-metadata">

**Author:** ![addwebsolution](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/addwebsolution/32/120392_2.png) [@addwebsolution](https://forum.ionicframework.com/u/addwebsolution)\
**Post date:** [March 10, 2018, 8:23am UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android-app/124088/2 "2018-03-10T08:23:50Z")

</div>

Hi, @ahmedmedhat187

I think this issue resolved check below link

**[Android build broken after gradle dependencies update: Execution failed for task ':processDebugResources'. \> com.android.ide.common.process.ProcessException: Failed to execute aapt](https://forum.ionicframework.com/t/android-build-broken-after-gradle-dependencies-update-execution-failed-for-task-processdebugresources-com-android-ide-common-process-processexception-failed-to-execute-aapt/109982/82)**

thanks

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:46pm UTC](https://forum.ionicframework.com/t/ionic-2-error-build-android-app/124088/3 "2021-07-19T21:46:05Z")

</div>


