failed to execute aapt


Android throws the error failed to execute aapt when it is not able to recognize AAPT. This is react native and ionic error. To solve this issue either recreate the project or add support module in configuration object of build.gradle.

Follow these steps –

Open platforms/android/build.gradle and add this –

configurations.all {
    resolutionStrategy {
        force ''

    Tweet this to help others

Check if you are using the correct compileSdkVersion or BuildToolsVersion.

Also, if nothing works then rebuild the project. It will take all the updated dependencies and modules.

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like

React Native background color

In React Native background color can be applied using background-color css property. The only difference is that we need to use camel case as backgroundColor. Check out the code –…
View Post

How to check react version?

Table of Contents Hide Check react version through command lineCheck version programmaticallyLive DemoRelated Posts: It is important to know how to check react version in order to keep the libraries…
View Post