Skip to content

When VSCode first opens the project, the Java plugin automatically executes Gradle in the background, causing an error. #489

@xhc-code

Description

@xhc-code

When opening the Flutter Android project, the VSCode Java plugin will display the following error message:

Image Image Image Image

This series of error messages will appear for an unknown reason. Because of the errors caused by these automated tasks when opening the Flutter Android project in VSCode, I did not run any tasks.

The workspace configuration for the development environment of VSCode that I am using is:
{
"java.configuration.updateBuildConfiguration": "interactive",
"java.import.gradle.java.home": "C:\Program Files\jdk-17.0.2",
"dart.flutterSdkPath": "E:\Flutter\SDK\flutter_windows_3.24.5-stable\flutter",
"jdk.jdkhome": "C:\Program Files\jdk-17.0.2",
}
Flutter Android directory, the version of gradle-wrapper.properties configured for gradle is 7.6.4.

My Windows 10 system environment variables are:
jdk17.0.2
Gradle 6.8.3


Image Another issue is that when I open the Flutter Android project, this page will automatically open. This is a Flutter project, not a Java project. Is there a way to close it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions