hui-z / image_gallery_saver

flutter中用于保存图片到相册的Plugin
MIT License
275 stars 377 forks source link

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. #247

Closed BrayanX44 closed 1 year ago

BrayanX44 commented 1 year ago

I have to upgrade my flutter proyect, and threw this error. Only thid package.

I tried changing dependency on this repo on master, but in was unsuccessful.

Can you plese help us?

FAILURE: Build failed with an exception.

* What went wrong:
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 ':in_app_update' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21
dennisgbp commented 1 year ago

any solution for this problem please?

dennisgbp commented 1 year ago

solution using flutter 3.7.12:

pubspec.yaml

image_gallery_saver: git: url: https://github.com/hui-z/image_gallery_saver ref: master # branch name

android/build.gradle

classpath 'com.android.tools.build:gradle:7.2.2'

android/gradle/wrapper/gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

mkobuolys commented 1 year ago

The solution in case this package is a transitive dependency in your project:

dependency_overrides:
  image_gallery_saver:
    git:
      url: https://github.com/hui-z/image_gallery_saver
      ref: master

Anyway, I hope the maintainers of this package will update it pretty soon, too.

mohamedsalah83 commented 1 year ago

I tried the solution but doesn't work could anyone help, please?

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 ':image_gallery_saver' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72

luohao123 commented 1 year ago

Avoid using this lib, it's less maintainence now.

mohamedsalah83 commented 1 year ago

I have found a solution I downgrade my android studio version to the previous version and now the package working fine.

woodwen commented 1 year ago

fix

kamleshwebtech commented 1 year ago

Is there anyone, who fixed this solution or got any solution??? Please suggest. Thanks.