You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exact version of Android Studio is Build #AI-242.21829.142.2421.12409432, built on September 24, 2024
I can no longer compile a project that uses flutter_nfc_kit.
The compilation error is:
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_nfc_kit:compileDebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (21).
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
* 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 3s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1)
The funny part is that I've made no changes to the source project, AND am using VSCode to compile it.
I can only assume that the latest Android Studio upgrade has changed the build environment.
I've tried a flutter clean to no avail.
The text was updated successfully, but these errors were encountered:
Maybe Android Studio is using newer Java / Gradle / AGP / Gradle Kotlin plugin? I have no AS installed so I cannot reproduce it now. You can look into the detailed logs and (hopefully) find more specific information.
The exact version of Android Studio is
Build #AI-242.21829.142.2421.12409432, built on September 24, 2024
I can no longer compile a project that uses flutter_nfc_kit.
The compilation error is:
The funny part is that I've made no changes to the source project, AND am using VSCode to compile it.
I can only assume that the latest Android Studio upgrade has changed the build environment.
I've tried a
flutter clean
to no avail.The text was updated successfully, but these errors were encountered: