#thiagomacauba88_api

1 messages ยท Page 1 of 1 (latest)

round sluiceBOT
#

๐Ÿ‘‹ 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/1367217373991665805

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

snow dust
#

Hi ๐Ÿ‘‹ I'm going to need more context on your situation. What code are you calling when this is encountered?

This is for Android right? Is that using Java, Kotlin, or React Native?

snow tartan
#

Android java

#

I'm trying to display the payment sheet
GooglePay support team, said that i need to upgrade to 20.24
I was using 19.1 and i didnt have this

can you help me?

snow dust
#

Quite possibly, but I'm going to need more context. I can't tell from an error about no class definition alone what class you're trying to call that isn't being found.

snow tartan
#

can i send to you the whole log?

#

the payment sheet after some version is probably using the compose.. as i dont have the compose for our project, one of the suggestion was add the libraries:

implementation "androidx.compose.ui:ui:1.5.1"
implementation "androidx.compose.material:material:1.5.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.5.1"
implementation "androidx.activity:activity-compose:1.7.2"

but i'm still have the issue

snow dust
#

Can we start by getting an understanding of what function you're calling when this error is encountered?

snow tartan
#

sure

#

paymentSheet.presentWithPaymentIntent(data.getClientSecret(), data.getConfiguration());

#

do you have any ideas?

snow dust
#

Not yet, I'm still trying to understand what function could be missing. I'm wondering if there is an import that is missing here.

snow tartan
#

OK, thanks

snow dust
#

I'm also checking with a teammate of mine who is more familiar with android environments.

snow tartan
#

sounds good ๐Ÿ™‚

snow dust
snow tartan
#

let me check

#

i dont think this is related to the client secret, because if i move back to version 19.1 works

round sluiceBOT
snow dust
#

To clarify, you're talking about changing the version of stripe-android that you're using in your project?

snow tartan
#

correct: com.stripe:stripe-android:

snow dust
#

Which subversion of 20.24 are you trying to use?

snow tartan
#

what do you mean about subversion?

snow tartan
#

ah ok

#

20.24.0

#

but i already tried 20.25.0

tiny tusk
#

๐Ÿ‘‹ stepping in as toby needs to step away

snow tartan
#

let me check

#

so, do i need to use: implementation 'androidx.compose.ui:ui-android:1.5.4'?

tiny tusk
#

The recommended version in that issue seems to be 1.1.1

snow tartan
#

ok let me try to remove these:

#

implementation "androidx.compose.ui:ui:1.5.1"
implementation "androidx.compose.material:material:1.5.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.5.1"
implementation "androidx.activity:activity-compose:1.7.2"

#

and add this: androidx.compose.ui:ui-android:1.1.1"

#

give me 1 min

#

I added: implementation "androidx.compose.ui:ui:1.1.1"
implementation "androidx.compose.material:material:1.1.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.1.1"
implementation "androidx.activity:activity-compose:1.1.1"

tiny tusk
#

You could also try compose 1.5.4 first and see if that works

snow tartan
#

ok

#

let me set everything to 1.5.4

#

:/

tiny tusk
#

Alright well in that case I'd revert back to whatever you had when seeing the original error and then add the bridge as referenced in the issue.

#

Sorry that this is such a hassle ๐Ÿ˜ฆ

snow tartan
#

but GooglePay requires me to use the 20.24

tiny tusk
#

Right you originally hit the java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/LocalSoftwareKeyboardController; error when you upgraded

#

So reset back to whatever version of Compose that used

#

Where you triggered that error

snow tartan
#

ok

tiny tusk
#

Then add the bridge

snow tartan
#

i'll remove everything related to compose, i'll keep only the stripe library

#

what's your next idea?

tiny tusk
#

You added the bridge code?

round sluiceBOT
snow tartan
#

witch one? because we have a couple

tiny tusk
snow tartan
#

i didnt find

#

can you pointed for me pls?

lost kiln
#

Hi there. I'll be taking over for bismarck, who needed to step away.

#

Command+f for the text "put this bridge" in the comment that bismarck linked; that's what he is referring to

snow tartan
#

i don't have this code

lost kiln
#

The suggestion is that you add similar code as a workaround to the issue that you're facing. Can you try implementing the workaround?

snow tartan
#

Create that class in kotlin?

lost kiln
#

So sorry, I was working with someone else and missed your message here

#

I have less familiarity with Kotlin than bismarck, but this is the code they were suggesting:

object LocalSoftwareKeyboardController {
    val current
        @Composable
        get() = LocalSoftwareKeyboardController.current
}```
snow tartan
#

ok, my project is java, so ineed to create this class then?

round sluiceBOT
outer wharf
#

Hi hi! Iโ€™m going to be taking over for my colleague here. Give me a minute to read back and understand things.