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.


About the Author


I am Akash Mittal, an overall computer scientist. If you want to guest post, need help in your projects, want to advertise, Feel free to contact me at [email protected]

View All Articles