Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ARASHz4 opened this issue Nov 16, 2022 · 15 comments
Open

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

ARASHz4 opened this issue Nov 16, 2022 · 15 comments

Comments

@ARASHz4
Copy link

ARASHz4 commented Nov 16, 2022

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
Copy link

Dead project ?

@Gavin0x0
Copy link

Gavin0x0 commented Feb 8, 2023

+1

@svenjacobs
Copy link

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

@AliPunjabi
Copy link

any alternative to this dependency?

@CrossBread
Copy link

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

@michaeljajou
Copy link

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

@yashpatel2202
Copy link

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
Copy link

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
Copy link

hpchari commented May 23, 2023

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
Copy link

ex-tag commented Jul 13, 2023

The Kotlin Gradle plugin issue has been pending since August 2022
#71 (comment)

@thorizer
Copy link

any fork or update about this

@thefirebanks
Copy link

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

@thefirebanks
Copy link

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
Copy link

kvenn commented Aug 31, 2023

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 🙏

@akifarhan
Copy link

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 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests