Android throws the error com.android.ide.common.process.processexception: 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 'com.android.support:support-v4:27.1.0'
    }
}

Β Β Β Β 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.

Comments

About the Author

akamit

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