com.android.ide.common.process.processexception: failed to execute aapt

Total
0
Shares

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.

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

React convert JSON to CSV

React convert JSON to CSV using JSONToCSVConvertor function. Suppose you have a table (GUI react table tool) and you want to export it into excel, then this function will come…
View Post