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
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']
}
In the app build.gradle
, navigate to the defaultConfig
section and add the following line.
Source Code
defaultConfig {
...
manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
}
Try to add manifestPlaceholders
https://github.com/FormidableLabs/react-native-app-auth#add-redirect-scheme-manifest-placeholder
android {
defaultConfig {
manifestPlaceholders = [
appAuthRedirectScheme: 'io.identityserver.demo'
]
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With