FAILURE: fluttertoast:compileDebugJavaWithJavac
fumatamax opened this issue · 3 comments
fumatamax commented
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':fluttertoast:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':fluttertoast:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: C:\Users\Micha\AppData\Local\Android\sdk\platforms\android-33\core-for-system-modules.jar.
> jlink executable C:\Program Files\Android\Android Studio\jre\bin\jlink.exe does not exist.
* 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 2m 15s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
Matteo2L commented
I have the same problem. How you resolved?
fumatamax commented
I had to restart the device and VisualCode. Go to the terminal and from the terminal access your flutter project folder. Once inside the directory, perform a Flutter clean
to clean the whole project and once that is done, open the project again and it should work.
leszekkrol commented
Thanks for help ⭐️🔥