What went wrong:
Execution failed for task ':facebook_app_events:compileReleaseKotlin'.
'compileReleaseJavaWithJavac' task (current target is 1.8) and 'compileReleaseKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
Expected Behavior
.
Steps To Reproduce
run this command:- flutter build apk --release
Platform
Android
Flutter Doctor
flutter doctor -v
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.2.1 23C71 darwin-arm64 (Rosetta), locale en-IN)
• Flutter version 3.16.9 on channel stable at /Users/mohammedrashid/FlutterDev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 41456452f2 (3 weeks ago), 2024-01-25 10:06:23 -0800
• Engine revision f40e976bed
• Dart version 3.2.6
• DevTools version 2.28.5
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/mohammedrashid/Library/Android/sdk
• Platform android-34, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.13.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
[✓] VS Code (version 1.86.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.82.0
[✓] Connected device (4 available)
• Jumana’s iPhone (mobile) • 00008101-001A00400EB9003A • ios • iOS 17.2.1 21C66
• iPhone 15 (mobile) • A1112592-8983-4ECA-8A39-85C121E364A4 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.2.1 23C71
darwin-arm64 (Rosetta)
• Chrome (web) • chrome • web-javascript • Google Chrome
108.0.5359.124
[✓] Network resources
• All expected network resources are available.
• No issues found!
Is there an existing issue for this?
Current Behavior
Expected Behavior
.
Steps To Reproduce
run this command:- flutter build apk --release
Platform
Android
Flutter Doctor