-
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
Description
Platform
Flutter Mobile Android
Obfuscation
Enabled
Debug Info
Enabled
Doctor
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.1 24B83 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.93.1)
[✓] Connected device (4 available)
[✓] Network resources
Might be related to #2396
Since I upgraded my Kotlin (now 2.1.0) and Gradle (now 8.6.1) versions, sentry_flutter seems to have issues when compiling for Android. I can confirm this is an issue with this package, as by modifying the sentry_flutter/android/build.gradle
with
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
- languageVersion = "1.4"
+ languageVersion = "1.6"
}
I can compile my app again
Version
8.10.1
Steps to Reproduce
Upgrade to latest Kotlin + Gradle versions, then build app
-> compilation fails
Expected Result
The app should compile and launch normally on Android
Actual Result
Compilation fails with:
e: Language version 1.4 is no longer supported; please, use version 1.6 or greater.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sentry_flutter:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 15s
Error: Gradle task assembleDebug failed with exit code 1
Are you willing to submit a PR?
None
Metadata
Metadata
Assignees
Labels
Projects
Status
Done
Status
No status