Search code examples
androidreact-native

Android build error "AndroidManifest.xml requires a placeholder substitution"


I'm building a reactNative app for Android, and I'm getting this error:

Manifest merger failed : Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.

What is this error? how to solve it? Cheers


Solution

  • in the

    app build.gradle

    android {
    compileSdkVersion 26
    buildToolsVersion '26.0.3'
    
    defaultConfig {
        applicationId "com.chuchas.comm"
        ...
    
        // place correct redirectScheme~
        manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
    
    }