adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
88 stars 15 forks source link

Update Kotlin & Gradle Version #79

Closed ibrahimdevs closed 1 year ago

ibrahimdevs commented 1 year ago

Hi,

Current kotlin version is too old and it keeps from us to update recent gradle versions/kotlin versions.

Please update andoid/build.gradle file;

Thanks,

vladd-g commented 1 year ago

hi @ibrahimdevs

I suppose you can upgrade Kotlin version on the app level, you may have a file similar to this (https://github.com/adaptyteam/AdaptySDK-Flutter/blob/master/example/android/build.gradle#L2), it's where you can upgrade both Kotlin and Gradle

Or have you encountered problems updating them on the app side?

ibrahimdevs commented 1 year ago

hi @vladd-g , Thanks for very quick response. I upgrade the gradle version in my project to "com.android.tools.build:gradle:7.3.1" and "kotlin_version = '1.6.10' then when I try to run my app, there is an error;

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':adapty_flutter' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20

vladd-g commented 1 year ago

@ibrahimdevs got it, we'll try to fix it in the next release! Thank you!

x401om commented 1 year ago

Hey @ibrahimdevs, we have fixed this in the latest release!