React-native-youtube: Error while building release apk

Created on 16 Nov 2018  路  4Comments  路  Source: davidohayon669/react-native-youtube

While I was trying to make a build of app, it was showing this error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-youtube:verifyReleaseResources'.
    > com.android.ide.common.process.ProcessException: Failed to execute aapt

What is the solution to this problem?

Most helpful comment

Open your android/build.gradle

and pass on line 23 (before: allprojects { ... ):

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

All 4 comments

Open your android/build.gradle

and pass on line 23 (before: allprojects { ... ):

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

Thank @marksturm . It worked for me

@marksturm Thanks that's work

370

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnnykoo84 picture johnnykoo84  路  4Comments

manjeet-dobble picture manjeet-dobble  路  5Comments

savioseb picture savioseb  路  4Comments

dungnguyen10989 picture dungnguyen10989  路  3Comments

dblazeski picture dblazeski  路  5Comments