React-native-document-picker: Build failed. react-native-document-picker:verifyReleaseResources exception

Created on 21 Oct 2018  路  6Comments  路  Source: rnmods/react-native-document-picker

Hello and good day. I've tried to build apk file and it turns to exception

Execution failed for task ':react-native-document-picker:verifyReleaseResources'.

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

How to fix it?

react-native-cli: 2.0.1
react-native: 0.57.1
react-native-document-picker: 2.1.0

Most helpful comment

Same error here, my env is:

react-native: 0.59.3
react-native-document-picker v.3 (use github forked repo from the #197 PR)

I added the code suggested by @Krosh but I changed the version to mimic my buildscript > ext > ... versions from 27 -> 28 like so:

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

and all works!
馃

All 6 comments

@ShaubertIlya please update to the last version. I know, there is no nice docs. https://github.com/Elyx0/react-native-document-picker/wiki/V2-to-V3-migration
I hope it helps.

@ShaubertIlya You need to add following code in your project's android/build.gradle:

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

I found it on SO, https://stackoverflow.com/questions/52613089/getting-verifyreleaseresources-error-after-upgrading-react-native, it helps me

Same error here, my env is:

react-native: 0.59.3
react-native-document-picker v.3 (use github forked repo from the #197 PR)

I added the code suggested by @Krosh but I changed the version to mimic my buildscript > ext > ... versions from 27 -> 28 like so:

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

and all works!
馃

@b3nab Thanks for sharing! Just works!

Hillarious!!! it just simply works...

Thanks for the replies guys, this repo needs a lot of love, if anyone wants to clarify all that I'm merging!

Was this page helpful?
0 / 5 - 0 ratings