AppAuth-Android: Error: Manifest merger failed
I got an error
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.
How to solve this?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 35
- Comments: 17 (2 by maintainers)
Hi ,
You need to mention your App Auth Redirect Scheme in App’s build.gradle file. Below is example from my code.
android.defaultConfig.manifestPlaceholders = [‘appAuthRedirectScheme’: ‘YOURSCHEME’]
YOUR SCHEME is same value as in Manifest file RedirectUriReceiverActivity.
<activity android:name="net.openid.appauth.RedirectUriReceiverActivity"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="YOURSCHEME" /> </intent-filter> </activity>Try to add manifestPlaceholders https://github.com/FormidableLabs/react-native-app-auth#add-redirect-scheme-manifest-placeholder
Closing due to lack of activity.
Thanks for the hint on Gradle Manifest Placeholders.
Using
android.defaultConfig.manifestPlaceholders = ['appAuthRedirectScheme': 'YOURSCHEME']
could be an important information for the README - what do you think?I have the same error in my app, I already have
However, I’m still getting this error.
I fixed it by recursively downloading AppAuth instead of downloading the zip file. I’m boosted af.