#Yorki
1 messages Β· Page 1 of 1 (latest)
Hi there!
Are you following a specific documentation page? If so, can you share the link?
Thanks! Give me a few minutes to look into this.
π
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 paymentSheettoprivate com.stripe.android.paymentsheet.PaymentSheet paymentSheetexplicitly
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?
I send you my project, can you try it at your place?
I could maybe try, if you have such a project.
well it works for me
I had to change your Android versions because you have build errors since you're targeting an old version :
I have rebuilt
must be something wrong on your end then
Can you tell me the Android Gradle Plugin Version and Gradle Version in your project structure
this is mine
π
we're using the same project(the file you sent), so it will be the same
What do you think is the problem?
There will be classes related to PaymentSheet, but there is no such class as PaymentSheet
sounds like the dependency is not imported correctly or didn't download properly or something
try a fresh project
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
I'm not sure what else I can suggest, I don't see anything wrong with the project and it works for me
I don't know
You can try to look at the methods in the paymentsheet object
to make sure it works
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
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
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
It's possible, I'll try another network tonight
Why are you always obsessed with developing languages ββand developing language versions?
Do you not support the use of kotlin1.6 version?
what a strange question
don't know! but at least you can see that this is a difference in my project and yours, so it's something you can try to update and see if it maybe helps
in this part of the library we reference 1.8.0 : https://github.com/stripe/stripe-android/blob/master/dependencies.gradle#L44 , not sure if it's the same thing
ok, i tried using the latest version of kotlin
and did that help?
Helpful, I think you need to mark on the documentation to support kotlin1.7 and above
great!
Well, I have no problem for now, thank you for your help