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

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

Closed
MuhammadWaqar340 opened this issue May 15, 2024 · 6 comments

Comments

@MuhammadWaqar340
Copy link

Hello, I am facing the issue
'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 ':sign_in_with_apple' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50'

I try all the possible solutions but i cannot figure out the problem. Kidnly guide me how can i figure out this problem.

@tp
Copy link
Collaborator

tp commented May 15, 2024

@MuhammadWaqar340 What version of the plug-in are you using (in your pubspec.lock file)?

We are currently using kotlin-gradle-plugin version 1.7.10, so it looks to me like you're using an older version and could just upgrade to solve this issue.

@MuhammadWaqar340
Copy link
Author

MuhammadWaqar340 commented May 16, 2024

@tp Kindly guide me how do i upgrade kotlin-gradle-plugin version ?

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
}

@tp
Copy link
Collaborator

tp commented May 16, 2024

@MuhammadWaqar340 I don't think that's something the consumer app needs to do.

Are you using the latest sign_in_with_apple: ^6.1.0 in your pubspec.yaml?

@MuhammadWaqar340
Copy link
Author

MuhammadWaqar340 commented May 16, 2024

@tp No its 3.3.0. I think sign_in_with_apple has no directly used. But some other package are dependend. I cannot find sign_in_with_apple in my pubspec.yaml file but present in pubspec.lock file. I try the solution by deleting the pubspec.lock file and regenerate it by "flutter pub get" but sign_in_with_apple automatically added to my pubspec.lock file with version 3.3.0.

@tp
Copy link
Collaborator

tp commented May 17, 2024

If you're not sure how this plug-in even ended up in your project, run flutter pub deps to see which package pulled it in as a dependency (via https://stackoverflow.com/questions/57174506/dependency-diagram-in-dart-flutter).

Then upgrade that one, which should hopefully refer to a more recent version of our plugin here.

There is no other way than upgrading the plugin to get this fixed for you (or drop the dependency, if you don't even want to use sign_in_with_apple). (If you're not using it in practice but have a dependency that is pulling it in, you might also be able to use dependency_overrides to force a later version.)

@tp tp closed this as completed May 17, 2024
@MuhammadWaqar340
Copy link
Author

@tp Thanks for your time. I resolved the issue by dependency_overrides and its work for me.

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

2 participants