-
Notifications
You must be signed in to change notification settings - Fork 526
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
Build Failure due to JVM Target Compatibility Issue in flutter_unity_widget (Kotlin 17 vs Java 1.8) #986
Comments
Which Unity version did you use, and which jvm settings are in your gradle files? |
Thank you for your quick reply!
However, I couldn't find any code specifying the JVM version in the other
|
I am also getting the same issue |
Me too, I am also getting this issue. |
I am also getting the same issue |
Hi, I found a temporary solution while waiting for this library to be updated to a higher version of Java. The library currently uses Java version 1.8. However, since my project uses Java 17, I need to modify the Java version in this library. Here are the steps:
Hope this helps! |
1.download this dependency https://github.com/juicycleff/flutter-unity-view-widget |
Describe the bug
When trying to run a Flutter application with the flutter_unity_widget package using "Run and Debug" in VS Code, an error occurs during the build process. The error specifically states a mismatch between the Java version for the compileDebugJavaWithJavac (targeting 1.8) and the compileDebugKotlin (targeting 17). The build fails as a result.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Flutter application should successfully run on the connected Android device without any build errors.
Error details
Unity (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: