-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix the crash for projects using JVM 17 #367 #371
Conversation
@OmarDefaoui thanks for the fix! Could this also be solved by upgrading |
Yes, it will also fix the issue |
Hey @Zazo032 the project is not building if I don't add this inside the compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
} When I add it, it then works and builds my project. |
I don't think that this change should be added in intercom_flutter. It must be added in root project/app who is using the intercom_flutter and updated Kotlin plugin and AGP. |
Hey @deepak786. 👋 If I remove the FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':intercom_flutter:compileDebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation But if I add the compile block back, it works. |
Can you try by adding the compile options block in your project build.gradle file itself instead of intercom_flutter? |
@vlazdra Please send a query to Intercom support directly. Note: Don't mention anything about Flutter. Raise the query considering the Android platform only. |
@deepak786 Will do. No worries I'm aware that they won't assist for something that they don't support officially. I did however point out, during a meeting, that they should officially support it since it's a major player in the market and it's just a matter of "bridging the gap". 🙂 |
This will also solve the issue. |
|
||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_17 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
I have created another PR #387 to add full support of AGP 8 |
Try |
@deepak786 Just tried it, and it seams that it's working as expected. |
Fix the crash for projects using JVM 17 #367