Suraj-Tiwari / react-native-payumoney

React Native Payumoney (Android/IOS)
MIT License
18 stars 9 forks source link

Failed to Build #46

Closed MonMohon closed 3 years ago

MonMohon commented 3 years ago
    Attribute application@usesCleartextTraffic value=(true) from [:react-native-payumoney] AndroidManifest.xml:9:18-53
    is also present at [com.payu.custombrowser:payu-custom-browser:7.5.1] AndroidManifest.xml:17:18-54 value=(false).
    Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to <application> element at AndroidManifest.xml:6:5-26:19 to override.

FAILURE: Build failed with an exception.

Suraj-Tiwari commented 3 years ago

As error gives you solution do this

Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to

element at AndroidManifest.xml On Fri, 22 Jan, 2021, 6:17 pm Mon Mohon Singha, wrote: > Attribute application@usesCleartextTraffic value=(true) from [:react-native-payumoney] AndroidManifest.xml:9:18-53 > is also present at [com.payu.custombrowser:payu-custom-browser:7.5.1] AndroidManifest.xml:17:18-54 value=(false). > Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element at AndroidManifest.xml:6:5-26:19 to override. > > FAILURE: Build failed with an exception. > > - What went wrong: > Execution failed for task ':app:processDebugManifest'. > > Manifest merger failed : Attribute application@usesCleartextTraffic > value=(true) from [:react-native-payumoney] AndroidManifest.xml:9:18-53 > is also present at [com.payu.custombrowser:payu-custom-browser:7.5.1] > AndroidManifest.xml:17:18-54 value=(false). > Suggestion: add 'tools:replace="android:usesCleartextTraffic"' to element > at AndroidManifest.xml:6:5-26:19 to override. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > , or > unsubscribe > > . >
MonMohon commented 3 years ago

i did like this below but again error image

Suraj-Tiwari commented 3 years ago

Put that in application tag

On Fri, 22 Jan, 2021, 8:07 pm Mon Mohon Singha, notifications@github.com wrote:

i did like this below but again error [image: image] https://user-images.githubusercontent.com/304477/105504091-5d76bf80-5ced-11eb-9578-902af0b4df10.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Suraj-Tiwari/react-native-payumoney/issues/46#issuecomment-765444983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJOPOQGJBZCFW4J3BR3U5LS3GERZANCNFSM4WON4INQ .

MonMohon commented 3 years ago

The prefix "tools" for attribute "tools:replace" associated with an element type "manifest" is not bound. image

please help

MonMohon commented 3 years ago

Put that in application tag On Fri, 22 Jan, 2021, 8:07 pm Mon Mohon Singha, @.***> wrote: i did like this below but again error [image: image] https://user-images.githubusercontent.com/304477/105504091-5d76bf80-5ced-11eb-9578-902af0b4df10.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#46 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJOPOQGJBZCFW4J3BR3U5LS3GERZANCNFSM4WON4INQ .

ok will try

MonMohon commented 3 years ago

i put in application tag generate error image

MonMohon commented 3 years ago

The prefix "tools" for attribute "tools:replace" associated with an element type "application" is not bound.

Suraj-Tiwari commented 3 years ago

https://www.github.com/Suraj-Tiwari/react-native-payumoney/tree/master/example%2Fandroid%2Fapp%2Fsrc%2Fmain%2FAndroidManifest.xml

see this file for example

On Fri, 22 Jan, 2021, 8:15 pm Mon Mohon Singha, notifications@github.com wrote:

The prefix "tools" for attribute "tools:replace" associated with an element type "application" is not bound.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Suraj-Tiwari/react-native-payumoney/issues/46#issuecomment-765451552, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJOPOR5KULZVRM4BTSGAVTS3GFRRANCNFSM4WON4INQ .

MonMohon commented 3 years ago

I follow your step mention above but produce another error i don't know is this thing related to this package or not

MonMohon commented 3 years ago

I removed this issue by adding the following lines

add multiDexEnabled true in android>app>build.gradle inside defaultConfig

add implementation 'com.android.support:multidex:1.0.3' in android>app>build.gradle inside dependencies