fluttercommunity / flutter_sms

A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
https://fluttercommunity.github.io/flutter_sms/
MIT License
241 stars 176 forks source link

Android: Not compatible with kotlin-gradle-plugin 1.7.xx version #74

Open ARASHz4 opened 1 year ago

ARASHz4 commented 1 year ago

My kotlin-gradle-plugin version is 1.7.20 and is not compatible Please update kotlin-gradle-plugin version in android

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 ':flutter_sms' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
chenenyu commented 1 year ago

Dead project ?

Gavin0x0 commented 1 year ago

+1

svenjacobs commented 1 year ago

A migration to a newer AGP version so that we can use current Kotlin versions would be greatly appreciated 🙏🏼

AliPunjabi commented 1 year ago

any alternative to this dependency?

CrossBread commented 1 year ago

+1 Hit the same snag. This is the only dependency causing our project to be unresolvable now.

michaeljajou commented 1 year ago

Is there any way around this like downgrading Kotlin or is that not recommended? What are we supposed to do here?

yashpatel2202 commented 1 year ago

is fluttercommunity working on this issue? its a serious issue now, our project can not build without this. do anyone know any workaround or any other library?

svenjacobs commented 1 year ago

I have downgraded the flutter version using this flutter downgrade v1.2.1 everything worked fine

Downgrading Flutter to an ancient version (current version of Flutter is 3.10.0) which was released 4 years ago is unfortunately not an option and has other severe consequences.

hpchari commented 1 year ago

Here, First, you need to understand this error is caused by the flutter_sms plugin's build.gradle, not with your project. Here, you can wait until the developer to update the kotlin gradle version of the plugin, or you can do by yourself.

Go to the plugin Github page and download the source code and extract the file. Edit the build.gradle file inside the extracted folder. Upgrade the kotlin.gradle by editing the line below:

ext.kotlin_version = '1.7.10'

Now save the file. and go to your pubspec.yaml file to add this package from your local folder like the below:

dependencies: flutter: sdk: flutter background_sms: ^0.0.4 permission_handler: ^10.2.0 flutter_sms: path: C:/Users/Hari Pd. Chaudhary/Downloads/flutter_sms-master sms_advanced: path: C:/Users/Hari Pd. Chaudhary/Downloads/sms_advanced-master

Source: Solved | Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.

ex-tag commented 1 year ago

The Kotlin Gradle plugin issue has been pending since August 2022 https://github.com/fluttercommunity/flutter_sms/pull/71#issuecomment-1292961108

thorizer commented 1 year ago

any fork or update about this

thefirebanks commented 11 months ago

+1 to this! I think there's a PR addressing it? https://github.com/fluttercommunity/flutter_sms/pull/71/files

thefirebanks commented 11 months ago

Actually when I download the full source code it has the build.gradle file updated:

buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.4'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

It appears that the release is not up to date, so just downloading the code and linking it in your project's pubspec.yaml file as @hpchari mentioned should work!

kvenn commented 10 months ago

The fix has been merged into master in June (https://github.com/fluttercommunity/flutter_sms/pull/81). You can reference it in your project with:

  flutter_sms:
    git:
      url: https://github.com/fluttercommunity/flutter_sms.git
      ref: eea0984

But @rodydavis ...please add more contributors and let us help you get these fixes in and deployed to pub.dev 🙏

akifarhan commented 10 months ago

Dear @robydavis, please let others help to contribute and maintain this package. 🙏

The fix has been merged into master in June (#81). You can reference it in your project with:

  flutter_sms:
    git:
      url: https://github.com/fluttercommunity/flutter_sms.git
      ref: eea0984

But @rodydavis ...please add more contributors and let us help you get these fixes in and deployed to pub.dev 🙏