#Yorki

1 messages Β· Page 1 of 1 (latest)

grizzled spruceBOT
thorn quartz
#

Hi there!

#

Are you following a specific documentation page? If so, can you share the link?

thorn quartz
#

Thanks! Give me a few minutes to look into this.

keen plank
#

πŸ‘Œ

edgy cedar
#

hi! did you ask your Solutions Architect at Stripe about this too? I was just answering them as well.

#

my suggestions would be to try:

  • doing a clean build
  • syncing gradle again
  • changing the code from private PaymentSheet paymentSheet to private com.stripe.android.paymentsheet.PaymentSheet paymentSheet explicitly
keen plank
#

My project is a new project,

edgy cedar
#

not sure what else I can suggest really

#

this works fine for me but I don't use Java, I use Kotlin.

do you have a small example project that demonstrates the problem that you can share with us?

keen plank
#

I send you my project, can you try it at your place?

edgy cedar
#

I could maybe try, if you have such a project.

keen plank
edgy cedar
#

well it works for me

#

I had to change your Android versions because you have build errors since you're targeting an old version :

keen plank
#

I have rebuilt

edgy cedar
#

must be something wrong on your end then

keen plank
#

Can you tell me the Android Gradle Plugin Version and Gradle Version in your project structure

#

this is mine

edgy cedar
keen plank
#

πŸ˜‚

edgy cedar
#

we're using the same project(the file you sent), so it will be the same

keen plank
#

What do you think is the problem?

#

There will be classes related to PaymentSheet, but there is no such class as PaymentSheet

edgy cedar
#

sounds like the dependency is not imported correctly or didn't download properly or something

#

try a fresh project

keen plank
#

Just now I tried to add dependencies on my colleague's computer, but there is still no paymentsheet

#

same as mine

#

If the dependencies are not correct, then no library-related classes will appear

edgy cedar
#

I'm not sure what else I can suggest, I don't see anything wrong with the project and it works for me

keen plank
#

I can find this class in dependencies, but it is like this, is this correct?

edgy cedar
#

I don't know

keen plank
#

to make sure it works

edgy cedar
#

again, it works fine for me

#

I assume you have something in your project or your version of Android Studio or something , that is really old(since you still use Java and not Kotlin) and perhaps that causes an issue. I'd try creating fresh projects using the latest version of everything you can think of

keen plank
#

My colleague's project was created using kotlin, and there is no paymentsheet
This question has nothing to do with java or kotlin. You can try to call the method in paymentsheet in my project. see if there is any hint

edgy cedar
#

everything works fine for me, there are no hints

#

what version of Android Studio are you using, what version of the Kotlin plugin?

#

have you tried on other networks? maybe you have a firewall that is damaging the dependency files when they're downloaded

keen plank
#

Why are you always obsessed with developing languages ​​and developing language versions?

#

Do you not support the use of kotlin1.6 version?

edgy cedar
keen plank
#

ok, i tried using the latest version of kotlin

edgy cedar
#

and did that help?

keen plank
#

Helpful, I think you need to mark on the documentation to support kotlin1.7 and above

edgy cedar
#

great!

keen plank
#

Well, I have no problem for now, thank you for your help