'Unable to install and run Android Emulator for VSCode without Installing Android Studio
I'm new to VScode and Flutter development. I'm attempting to install and run an android emulator in VScode without installing Android studio. The following is the step my step process which I have followed.
- Installed VSCode in "C:\Program Files\Microsoft VS Code\Code.exe".
- Extracted Flutter SDK 3.0.0 in E:\ as E:\flutter.
- Downloaded tools_r26.1.1-windows and extracted it to E:\Android SDK.
- In VScode, Installed Dart and flutter plugins respectively.
- Set SDK path using the following command in VScode terminal "flutter config --android-sdk E:\Android SDK". I get response as Setting "android-sdk" value to "E:\Android". I restart IDE and goto next step.
- Updated the paths in Environment variables by adding E:\flutter\bin to Path in both System and User Variables. Did the same for the Android SDK folder.
- Ran Flutter Doctor and I get the following response
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [Version 10.0.22000.675], locale en-IN)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[!] Android Studio (not installed)
[√] VS Code, 64-bit edition (version 1.67.1)
[√] Connected device (2 available)
[√] HTTP Host Availability
! Doctor found issues in 4 categories.
- When i attempt to start emulator using ctrl+shift+p and select Flutter:Launch Emulator i can the follwing error
avdmanager is missing from the Android SDK
I need help here. Thank you in advance.
Solution 1:[1]
You look at the build tab at the bottom of the screen, it will display the error message and option to install the Build tools. Install it and you should be able to see the AVD Manager. Another way is to go to the SDK Manager. Under SDK Tools you will find the Android SDK Build tools. Reference Got from https://www.tektutorialshub.com/android-studio/avd-manager-sdk-manager-missing-or-greyed-out-in-android-studio
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 | Ahmad |
