'Execution failed for task ':react-native-geocoder:verifyReleaseResources'

enter image description hereHi I am trying create release apk , here I have used react-native-geocode, but while creating build getting bellow error

Execution failed for task ':react-native-geocoder:verifyReleaseResources'.

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

Do anyone faced such issue ??



Solution 1:[1]

Hi try this android/build.gradle At end add:

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}

Solution 2:[2]

Hi add this in android/build.gradle At end add:

subprojects {
afterEvaluate {project ->
    if (project.hasProperty("android")) {
        android {
            compileSdkVersion rootProject.ext.compileSdkVersion
            buildToolsVersion rootProject.ext.buildToolsVersion
        }
    }
}

}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 selçuk do?an
Solution 2 Akash Tomar