bamlab / react-native-braintree-payments-drop-in

React Native integration of Braintree Drop-in
MIT License
35 stars 31 forks source link

Android - Manifest Merger failed - Attribute application@allowBackup value=(false) when running app #21

Closed ShaharyarMaroof closed 4 years ago

ShaharyarMaroof commented 4 years ago

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:13:7-34 [1] is also present at [org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.1.4-1] AndroidManifest.xml:14:9-35 value=(true). [1] Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:7:5-117 to override.

Can you please help me fix this issue? I'm getting this when running the project with the lib installed. I have not setup 3DSecure as I don't need it currently.=

ShaharyarMaroof commented 4 years ago

Hey @Almouro, I'm the issue on using versions above 1.0.1. Can you please let me know if there is anything I do to fix it other than downgrading to 1.0.1?

ShaharyarMaroof commented 4 years ago

I fixed this issue by adding the following lines to the Android Manifest file. In the manifest tag: xmlns:tools="http://schemas.android.com/tools"

In the application tag just below android:name: tools:replace="android:allowBackup"