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' } }
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.