-3

Windows, with VS Code. Upgraded to latest flutter,

using gradle-8.12-all

But in build.gradles.kts kept on complaining

Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-8.12-all.zip'. The specified initialization script 'C:\Users\xxxxxx\AppData\Roaming\Code\User\globalStorage\redhat.java\1.47.0\config_win\org.eclipse.osgi\58\0.cp\gradle\init\init.gradle' does not exist.Java(0)

What is this rehat.java for? and how can I install it?

2 Answers 2

1

Found the problem.

There is an extension Language Support for Java by Red Hat 1.50.0 been installed by VSCode, need to downgrade to V1.47.0

Sign up to request clarification or add additional context in comments.

Comments

0

OPTION 1: Uninstall/Disable the Red Hat Java extension (recommended for Flutter)

  1. Open VS Code

  2. Go to → Extensions

  3. Search: Java Extension Pack or Language Support for Java by Red Hat

  4. Click Disable or Uninstall

Restart VS Code → The Gradle error disappears.


OPTION 2: Reinstall the Red Hat Java extension cleanly

If you actually need Java:

  1. Remove extension:

    • Extensions → Language Support for Java by Red Hat → Uninstall
  2. Delete corrupted storage folder:

    • Delete folder:

      C:\Users\<your-user>\AppData\Roaming\Code\User\globalStorage\redhat.java
      
      
  3. Install again from Marketplace:

    • Search: Language Support for Java by Red Hat

    • Install

VS Code will regenerate the missing init.gradle.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.