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

Constant kotlin and gradle conflict #958

Open
abdorll opened this issue Jun 6, 2024 · 10 comments
Open

Constant kotlin and gradle conflict #958

abdorll opened this issue Jun 6, 2024 · 10 comments

Comments

@abdorll
Copy link

abdorll commented Jun 6, 2024

The class is loaded from C:/Users/user/.gradle/caches/transforms-3/c43036033b2a850b7b4fea83f4ff1678/transformed/jetified-kotlin-stdlib-1.9.0.jar!/kotlin/Unit.class
e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\location-5.0.3\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (101, 9): Class 'kotlin.Unit' was c
ompiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

@mccabejj
Copy link

mccabejj commented Jun 9, 2024

Running into the same issue

@kelemu777
Copy link

i have faced this issue too

@5c0rp264
Copy link

SAME HERE, HELP PLEASE 💀

@kelemu777
Copy link

i have solve it now, by downgrading packages i use, the causes for me is a geolocator package , by downgrading this package i solve it

@5c0rp264
Copy link

Geolocator is a separated package not related to flutter location from my understanding...

@kelemu777
Copy link

which package you use geolocator or location?

if you use location also u need to decrease it's version

@5c0rp264
Copy link

I tried both, which version do you have exactly that is working ?
Might be a needed answer anyway for everyone using either of those.

@abdorll
Copy link
Author

abdorll commented Jun 10, 2024 via email

@5c0rp264
Copy link

Related to #948

@rajeev1982
Copy link

I faced this too. Fixed it by upgrading the kotlin version in android/settings.gradle.

plugins {
...
id "org.jetbrains.kotlin.android" version '2.0.0' apply false
...
}

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

5 participants