19

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 is provided.

What is this error? how to solve it? Cheers

manuelBetancurt
  • 14,346
  • 29
  • 109
  • 206

3 Answers3

30

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']

}
manuelBetancurt
  • 14,346
  • 29
  • 109
  • 206
6

In the app build.gradle, navigate to the defaultConfig section and add the following line.

Source Code

   defaultConfig {
    ...
    manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
}
Ishara Amarasekera
  • 1,335
  • 1
  • 18
  • 33
Bello Damilola
  • 201
  • 3
  • 4
4

Try to add manifestPlaceholders

https://github.com/FormidableLabs/react-native-app-auth#add-redirect-scheme-manifest-placeholder

android {
  defaultConfig {
    manifestPlaceholders = [
      appAuthRedirectScheme: 'io.identityserver.demo'
    ]
  }
}
Hadnazzar
  • 1,096
  • 15
  • 20