Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

What is this error? how to solve it? Cheers

like image 432
manuelBetancurt Avatar asked Sep 05 '18 05:09

manuelBetancurt


3 Answers

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

}
like image 188
manuelBetancurt Avatar answered Sep 18 '22 18:09

manuelBetancurt


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

Source Code

   defaultConfig {
    ...
    manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
}
like image 23
Bello Damilola Avatar answered Sep 19 '22 18:09

Bello Damilola


Try to add manifestPlaceholders

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

android {
  defaultConfig {
    manifestPlaceholders = [
      appAuthRedirectScheme: 'io.identityserver.demo'
    ]
  }
}
like image 23
Hadnazzar Avatar answered Sep 18 '22 18:09

Hadnazzar