#MarkedCroutons

1 messages · Page 1 of 1 (latest)

austere matrixBOT
potent mica
#

hello! what issues are you running into specifically?

drowsy epoch
#

Well, right now I'm running into min SDK issues. When I insert this line into build.gradle: implementation 'com.stripe:stripe-android:20.19.0'

#

It says I then need to use a min SDK of 33, but that's breaks some ofmy other dependencies

#

I'm also looking to implement serverless functions for the stripe integration in typescript in firebase functions through flutter, and have had trouble figuring out how to do that

late axle
#

Hi @drowsy epoch did you set the targetSdkVersion to 33 or minSdkVersion?

drowsy epoch
#

Hi Jack, I set the compile SDKversion

#

this is the message that prompted me to do so: [!] Your project requires a higher compileSdkVersion. │
│ Fix this issue by bumping the compileSdkVersion in /Users/mordechai/dev/flutter_projects/skillhopper_app/android/app/build.gradle: │
│ android { │
│ compileSdkVersion 33 │
│ }

late axle
#

OK, and what error do you get after setting compileSdkVersion to 33?

drowsy epoch
#

Execution failed for task ':permission_handler_android:compileDebugJavaWithJavac'.

late axle
#

Can you do a ./gradlew clean and run ./gradlew installDebug again?

drowsy epoch
#

sure, gimme a sec

#

I get this error Execution failed for task ':agora_rtc_engine:compileDebugKotlin'.

Failed to query the value of task ':agora_rtc_engine:compileDebugKotlin' property 'compilerRunner$kotlin_gradle_plugin'.
Kotlin could not find the required JDK tools in the Java installation. Make sure Kotlin compilation is running on a JDK, not JRE.

#

agora is another service I've integrated into the app

late axle
#

Can you check with agora and see if it support compileSdkVersion of 33?

drowsy epoch
#

of course

#

I think it can't, though I'm having trouble finding it in the documentation. I'm not sure how to interpret this line in the error stacktrace:
'compileDebugJavaWithJavac' task (current target is 1.7) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.

late axle
#

Check your build.gradle file, it should have something like

 compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }```
#

Make sure they are at the same version

drowsy epoch
#

yep, those lines are there already

drowsy epoch
#

any thoughts?

#

I tried flutter clean and flutter run also

late axle
drowsy epoch
#

it seems unsolved. How would you recommend I proceed if. I want to use stripe?

#

Also, do you know of any complete guide to implementation of stripe connect marketplace for flutter?

potent mica
#

for context, the flutter_stripe sdk isn't maintained by Stripe. It's maintained by a third party so there's not much we can comment on there other than what we know from experience.

If you want, you can use one of our official mobile SDKs - we have one for iOS, Android, and React Native

drowsy epoch
#

ah, I didn't know that. Thank you
Unfortunately, flutter is much too central for me to part with it

#

do you know whom I can contact from the flutter stripe team?

potent mica
#

Connect implementation is generally done on the backend, so you're going to need to implement custom logic. If you want to refer to guides on Connect, you can take a look at this page : https://stripe.com/docs/connect

#

if you want to follow up on that issue, i think the typical process would be to follow up on that issue on their github repo