react-native-image-picker: Error: react-native-image-picker:processReleaseResources

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log

BUILD FAILED

Any Suggestions?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 25 (2 by maintainers)

Most upvoted comments

Faced the same issue, solved it using the solution linked by @RajaSaravanan. Here’s the gist: add the following lines to the bottom of your android/build.gradle:

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 26 // <-- match this to your project's compileSdkVersion
                buildToolsVersion '26.0.3' // <-- match this to your project's buildToolsVersion
            }
        }
    }
}

the project’s compileSdkVersion and buildToolsVersion are available under ext {...}

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.