Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.android.ide.common.process.ProcessException: Failed to execute aapt ERROR

Tags:

react-native

I am getting an error like this 'com.android.ide.common.process.ProcessException: Failed to execute aapt' The only thing that I have done is yarn android. Is there any way to solve it in ReactNative ?

like image 466
deniz baş Avatar asked Feb 25 '26 13:02

deniz baş


1 Answers

Below changes worked for me

In your android/build.gradle make 2 changes after

allprojects {}

New changes

  subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 26
                buildToolsVersion '26.0.0'
            }
        }
    }
  }


  configurations.all {
    resolutionStrategy {
        force 'com.android.support:support-v4:27.1.0'
    }
  }
like image 169
VK321 Avatar answered Feb 27 '26 04:02

VK321



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!