Reputation: 2423
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.
So, I downloaded this zip file from https://developer.android.com/studio/index.html#downloads
and manually placed the tools
folder here - C:\src\android_sdk\tools
The tools folder has these files:
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:
C:\src\android_sdk\tools
for the Path
variable in System Variables
.ANDROID_HOME
in System Variables with the value C:\src\android_sdk\tools
.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"
Downloaded the platform tools and extracted the contents of the
file to C:\src\android_sdk\tools\platform-tools\
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
Reputation: 3832
It looks like Flutter doesn't know where to look for the SDK. Did you update your path ?
Upvotes: 3