sukesh
sukesh

Reputation: 2423

Unable to complete Flutter installation

I have installed the Flutter plugin 3.7.1 to VS code along with Dart 3.7.1, and two other Android related plugins.

When I run the Flutter Doctor command, it shows 3 issues and one of them is - Android SDK not found.

enter image description here

So, I downloaded this zip file from https://developer.android.com/studio/index.html#downloads

enter image description here

and manually placed the tools folder here - C:\src\android_sdk\tools

The tools folder has these files:

enter image description here

Running the Flutter Doctor command still shows the same reminder. Also When I run Create Android Emulator, it shows the error - Invalid argument(s): Cannot find executable for null.

Did I download the correct Android SDK package.

I do not know how to code in Java and hence would like to stick with VS Code. How can I solve these issues and get started.

Steps I have tried so far:

  1. Included the path C:\src\android_sdk\tools for the Path variable in System Variables.
  2. Added the variable ANDROID_HOME in System Variables with the value C:\src\android_sdk\tools.
  3. Executed these commands in the Windows command prompt, which said - path updated and any open editor should be restarted to take effect:

    C:\src\flutter\bin>flutter config --android-sdk C:\src\android_sdk\tools C:\src\flutter\bin>flutter config --android-sdk "C:\src\android_sdk\tools" C:\src\flutter>flutter config --android-sdk C:\src\android_sdk\tools C:\src\flutter>flutter config --android-sdk "C:\src\android_sdk\tools"

  4. Downloaded the platform tools and extracted the contents of the file to C:\src\android_sdk\tools\platform-tools\

  5. Followed the step by ipereto here, which is to run a command in powershell. It created platforms & platform-tool folders.
  6. Restarted the system.

Running flutter doctor in VS code still shows the same error.

UPDATE:
Android Studio is a must for Flutter to work. I missed this point. After installing Android Studio, Flutter & Dart plugins are to be installed in it. Then VS Code flutter doctor command did not show those errors.

Upvotes: 2

Views: 2318

Answers (1)

MickaelHrndz
MickaelHrndz

Reputation: 3832

It looks like Flutter doesn't know where to look for the SDK. Did you update your path ?

Upvotes: 3

Related Questions