'You may need to restart any open editors for them to read new settings

Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.

In android studio, while running my first program I got above warning. then I searched over internet and I got some solution to this problem, which is:

C:\Users\KIIT\AndroidStudioProjects\flutter_app>flutter config --android-studio-dir \C:\Users\KIIT\AppData\Local\Android\Sdk

So, I tried this config method. but still nothing happened, and it showed me "You may need to restart any open editors for them to read new settings." this. please help me.



Solution 1:[1]

There is actually a GitHub issue related to this.

Here are some references on how to resolve this issue. (Taken from the GitHub issue mentioned above):

One option is to try this:

try to use this command
flutter config --android-sdk /path/to/android/sdk after that you have to try this command flutter doctor --android-licenses after that accept all the licenses after that try flutter doctor

Another option:

all you need to do is install Android API level 29 (Android 9.0+ "Q") go to Setting > Android SDK >SDK platform>Check Android 9+ and Press Apply button after that android studio will pop up a dialog to install what you downloaded(Android 9+) then you are done

And take note:

In Android Studio, ensure that the API level of your Project SDK (File->Project Structure) <= of the API level of your AVD.

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 MαπμQμαπkγVπ.0