Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter Doctor found issue Android_Home

I am trying to setup Flutter in windows 10. I have:

  • Android Studio installed
  • Visual Studio Code

When I run "andoid doctor" in command prompt is shows no errors: enter image description here

But When I try to configure VSCode Editer with steps given in https://flutter.io/get-started/editor/

It Throws error as show below: enter image description here

I tried after setting environment variable as: ANDROID_HOME = F:\Program Files\Android

Even after setting the above I get the same error.

like image 330
sandeep Avatar asked Mar 05 '18 17:03

sandeep


People also ask

What is my Android_home?

ANDROID_HOME is usually a directory like . android . Its where things like the Debug Key will be stored. According to David Turner on the NDK Mailing List, both ANDROID_NDK_ROOT and ANDROID_SDK_ROOT need to be set because other tools depend on those values (see Recommended NDK Directory?).

How do I fix Android SDK file not found ADB?

Reinstalling the platform tools might fix this problem. Open Android Studio, click SDK Manager in the toolbar or click Tools > SDK Manager, click SDK Tools, then uncheck Android-SDK Platform-Tools (as shown above). After this, open C:\Users\Username\AppData\Local\Android\Sdk and delete the platform-tools folder.


1 Answers

My device was not getting detected by VS Code so , when i searched i found you need to set Android sdk location in Flutter environment for VS code to detect Device so i went to Flutter sdk folder C:\Research\flutter and double clicked on flutter_console which opened a Flutter console and run command flutter config --android-sdk C:\Users\annur.arya\AppData\android-sdk and now it works enter image description here

like image 142
Annu Avatar answered Sep 24 '22 07:09

Annu