#syedhussain_error

1 messages ยท Page 1 of 1 (latest)

half tinselBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1339195903038455880

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

lusty plume
#

To clarify, your build works with 21.4.2?

old anchor
#

yes build works, but crashes on initPaymentSheet

lusty plume
#

Crashes how? What's the error?

old anchor
#

Error: Exception in HostObject::get for prop 'StripeSdk': java.lang.NoClassDefFoundError: Failed resolution of: Lcom/stripe/android/view/AddPaymentMethodActivityStarter$Result;, js engine: hermes [Component Stack]

It gives this error

#

when I remove

implementation("com.stripe:stripe-android:21.4.2")

it works fine, but no google pay button appears on the bottom sheet

lusty plume
#

Oh, I thought you said 21.4.2 resolved the error:

commented this, error resolved but there was no google play button

lusty plume
old anchor
#

nope, did not resolve, by commented I meant removed the line

#

<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />

have also added this in manifest

lusty plume
#

Where are you currently located?

old anchor
#

Karachi, Pakistan

lusty plume
#

And you have a real credit card in your Google Pay wallet on your device?

old anchor
#

nope, using testEnv at the moment

lusty plume
#

You still need a card in your wallet, as per the doc I linked. Otherwise the wallet button won't load

#

We replace the card with a test token in test mode

old anchor
#

but why is it crashing with error

#

?

lusty plume
#

You said it wasn't if you remove that line?

old anchor
#

so If I remove that line and add card in google pay wallet, it will work fine, right?

lusty plume
#

Perhaps there's an incompatibility between the versions of libaries and SDKs you're using. Hard to say without more details on that

old anchor
#

ok, will let you know the results