0
votes

I'm trying to run 'flutter run' but it returns the following error. Any idea on whats causing this to happen?

Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib\main.dart on sdk gphone x86 in debug mode...

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

Failed to create Jar file C:\Users\User.gradle\caches\jars-8\54252edd90659a19228cc919a3e977c6\kotlin-compiler-embeddable-1.3.50.jar.

  • 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 5s Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 6.3s Exception: Gradle task assembleDebug failed with exit code 1

1

1 Answers

0
votes

The problem here is, this folder C:\Users\User.gradle\caches\jars-8\54252edd90659a19228cc919a3e977c6 Is currently empty. It should have kotlin-compiler-embeddable-1.3.50.jar. How I fixed this problem, I have search on a Google for kotlin-compiler-embeddable-1.3.50.jar. From Google I have downloaded this kotlin-compiler-embeddable-1.3.50.jar. After downloading I have pasted that particular jar file here -> C:\Users\User.gradle\caches\jars-8\54252edd90659a19228cc919a3e977c6. Now I am not getting this error anymore.

You can download kotlin-compiler-embeddable-1.3.50.jar from here : https://jar-download.com/artifacts/org.jetbrains.kotlin/kotlin-compiler-client-embeddable/1.3.50/source-code