'Error problem in VS code for dart programming language

Every time I enter VS code and want an Android emulator Connect to dart language this error comes to me Please help me to resolve this error so that I can understand what you mean, thank youenter image description here



Solution 1:[1]

Run in your terminal flutter config --android-sdk [yourAndroidSDKPath].

If that doesn't work:

Go to Android Studio > Settings > SDK Manager > SDK Tools. Then select and download/update Android Emulator.

Now go back and open the AVD Manager and create a new Virtual Device.

The last thing you wanna do is check the Android SDK Flutter configuration directory.

Run in your terminal flutter config --android-sdk [yourAndroidSDKPath].

Restart your VSCode.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1