BreX900 / mek-packages

11 stars 13 forks source link

gradle kotlin version error on android build #82

Open SahilSharma2710 opened 1 month ago

SahilSharma2710 commented 1 month ago

Hey when i add mek_stripe_terminal in my flutter project, this error is coming when i building it for android

I have tried updating gradle and kotlin but no success , i think i am doing any mistake

Please help it's bet urgent - cc @kuamanet @ManuInNZ @BreX900 @GabM3 @jacopofranza

My flutter version is Flutter (Channel stable, 3.22.3, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN

Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

android/setting.gradle

Screenshot 2024-07-19 at 4 40 48 PM

Screenshot 2024-07-19 at 4 36 12 PM

SahilSharma2710 commented 1 month ago

Hey @BreX900 i have found the issue updating the kotlin version to '1.9.10' and by setting it's jvmTarget to 1.8 , were not sufficient there is one more setting that i had to use , in order to build it for Android i had to kept android.enableJetifier=false in gradle.properties. Can u explain why ?? Is this library of yours not compatible with AndroidX

BreX900 commented 1 month ago

It doesn't depend on my library, you should report the error to the official android sdk repository: https://github.com/stripe/stripe-terminal-android