From 436a8f3c889510600ce0f4a8b854d264b8d3d27d Mon Sep 17 00:00:00 2001 From: Cosmin Marc Date: Wed, 13 Mar 2019 08:24:04 +0100 Subject: [PATCH] Fix manifest merger failed error Fix the following error: Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:9:116-143 is also present at [us.feras.mdv:markdownview:1.1.0] AndroidManifest.xml:12:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:9:3-18:17 to override. --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cdd9cda7..03c87e13 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,19 @@ project(':react-native-documentscanner-android').projectDir = new File(rootProje include ':openCVLibrary310' project(':openCVLibrary310').projectDir = new File(rootProject.projectDir,'../node_modules/react-native-documentscanner-android/android/openCVLibrary310') ``` + #### In android/app/src/main/AndroidManifest.xml + Change manifest header to avoid "Manifest merger error". After you add `xmlns:tools="http://schemas.android.com/tools"` should look like this: + ``` + + ``` + Add `tools:replace="android:allowBackup"` in + ``` + Add Camera permissions request: + ``` + + ``` ### Usage @@ -109,4 +122,4 @@ The images are saved in `Documents` folder. Inspired in android project - https://github.com/ctodobom/OpenNoteScanner -- https://github.com/Michaelvilleneuve/react-native-document-scanner \ No newline at end of file +- https://github.com/Michaelvilleneuve/react-native-document-scanner