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

Kotlin Compile Version Mismatch #1267

Closed
BiswajitBharati opened this issue Nov 15, 2023 · 6 comments
Closed

Kotlin Compile Version Mismatch #1267

BiswajitBharati opened this issue Nov 15, 2023 · 6 comments
Labels

Comments

@BiswajitBharati
Copy link

I am getting below error after integrating and run the project.

/Users/username/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.9.10/dafaf2c27f27c09220cee312df10917d9a5d97ce/kotlin-stdlib-common-1.9.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

@BiswajitBharati BiswajitBharati changed the title ACRA SDK Runtime Error ACRA SDK Error Nov 15, 2023
@F43nd1r
Copy link
Member

F43nd1r commented Nov 16, 2023

Sounds like you either need to update kotlin or acra or both

@mikehardy
Copy link
Contributor

@F43nd1r this is going to be a widespread problem across android dev ecosystem with newer kotlin+gradle+android-gradle-plugin - this used to be a warning but they turned it into an error now

I finally just had to do this after upgrading android gradle plugin / gradle / kotlin while filing an internal ticket to troubleshoot and solve for real - added in gradle.properties at top level:

# Needed after Gradle 8 if there are incompatibilities, default is error
kotlin.jvm.target.validation.mode=warning

https://kotlinlang.org/docs/gradle-configure-project.html#check-for-jvm-target-compatibility-of-related-compile-tasks

@F43nd1r
Copy link
Member

F43nd1r commented Nov 18, 2023

@mikehardy that link looks like it's about jvm version, while the error by OP reads like a kotlin version incompatibility. Are you sure it's the same thing?

@mikehardy
Copy link
Contributor

I see what you're saying, but as observed data that's the toggle that allows the build to succeed in previous style (where there may be subtle bugs but in practice it's working well enough while everyone makes libraries and modules compatible etc)

@F43nd1r
Copy link
Member

F43nd1r commented Dec 12, 2023

So what actions would you propose @mikehardy? Update the FAQ? Sorry I haven't been active in the android app scene for four years now so I rely on input.

@mikehardy
Copy link
Contributor

Although I found the right toggle to delay the inevitable reconciliation of kotlin versions that needs to happen, it is possible to find that answer by searching (as I did) and it's not really a great answer. I don't think it rises to the level of a FAQ entry - either by how often I see it happening here (at least for now) and the quality of the answer (which is pretty low IMHO, and it's my own answer 😆)

@F43nd1r F43nd1r closed this as completed Nov 3, 2024
@F43nd1r F43nd1r changed the title ACRA SDK Error Kotlin Compile Version Mismatch Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants