tipsi-stripe icon indicating copy to clipboard operation
tipsi-stripe copied to clipboard

Showing "Manifest merge failed error"

Open Hari-krish-v opened this issue 2 years ago • 8 comments

When I installed tipsi-stipe package and run the project I get the below error message "Manifest merger failed : android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined"

Added android:exported="true" on Main/AndroidManifest.xml file inside activity tag

Below are the versions details. "react": "17.0.2", "react-native": "0.68.0", "tipsi-stripe": "^9.2.0"

    buildToolsVersion = "31.0.0"
    minSdkVersion = 21
    compileSdkVersion = 31
    targetSdkVersion = 31
    ndkVersion = "21.4.7075529"

Hari-krish-v avatar Apr 04 '22 09:04 Hari-krish-v

@Hari-krish-v Have you managed to fix it?

imariic avatar Apr 15 '22 07:04 imariic

Okay, I've managed to fix it by using tipsi-stripe:9.0.0

imariic avatar Apr 15 '22 09:04 imariic

I have updated to the latest version then also it showing the same error "Manifest merge failed"

Hari-krish-v avatar Apr 19 '22 07:04 Hari-krish-v

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

felexx90 avatar Apr 28 '22 06:04 felexx90

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

Thank you so much. Save me a lot of time @felexx90

mtr1012 avatar May 15 '22 02:05 mtr1012

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

I was trying to find a solution for a week for this, THANK YOU BLESS YOU!

gabriellend avatar Jul 22 '22 22:07 gabriellend

You are a lifesaver bro, I was struggling to fix this for the last 4 days. Your solution worked. Thank you.

itsAyyazdev avatar Aug 13 '22 19:08 itsAyyazdev

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

Thank you.

RaviPrakash040398 avatar Aug 17 '22 06:08 RaviPrakash040398

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

I only had to add the xmlns:tools="http://schemas.android.com/tools" into my AndroidManifest.xml and it worked just perfect! Thanks @felexx90 you saved me a lot of time.

GabrielJorge94 avatar Nov 17 '22 19:11 GabrielJorge94

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

You are a hearo brother.You saved my time

kavindadilshan avatar Nov 24 '22 19:11 kavindadilshan

@felexx90, app builds success, but crashes on entering. Which place should I add this activity in? Maybe I do smth wrong

aharodnikau avatar Jan 11 '23 14:01 aharodnikau

@Hari-krish-v I added this as a workaround to my AndroidManifest.xml

 <activity
      android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" 
       tools:node="merge"/>

Thanks. :)

xDemon200 avatar Feb 20 '23 19:02 xDemon200

Closing this ticket, so that new users don't think this project is still active.

Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!

See more: https://github.com/tipsi/tipsi-stripe/issues/842

fbartho avatar Jun 20 '23 20:06 fbartho

I was facing the same error and tried this

<activity android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" tools:node="merge"/>

But then got another error, after some research found the solution, which was same above line of code but without "tools:node="merge"",

Like this

<activity android:name="com.stripe.android.payments.StripeBrowserLauncherActivity" android:exported="true" />

ShoaibVirk008 avatar Dec 13 '23 16:12 ShoaibVirk008

I can’t emphasize enough how you should move off of tipsi-stripe @ShoaibVirk008. This is a security vulnerability, and I hope I never again use an app that still uses tipsi-stripe today, as of 2023.

fbartho avatar Dec 13 '23 18:12 fbartho