ponnamkarthik / FlutterToast

Toast Plugin for Flutter
MIT License
1.43k stars 349 forks source link

FAILURE: fluttertoast:compileDebugJavaWithJavac #502

Closed fumatamax closed 3 months ago

fumatamax commented 3 months ago
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 2 months ago

I have the same problem. How you resolved?

fumatamax commented 2 months ago

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 3 weeks ago

Thanks for help ⭐️🔥