Skip to content

toroxx/vscode-avdmanager

Repository files navigation

GitHub package version Visual Studio Marketplace OpenVSX Registry VS Market installs

Android Virtual Device (AVD) Manager

AVD Manager GUI for Visual Studio Code.

Launch Android Emulator and manage SDK packages without touching the Android Studio😎

See the CHANGELOG for the latest changes.

Also, welcome to open the issue any about this extension.

inspired by oognuyh/vscode-android-emulator-helper

Features

AVD Manager

  • AVD create, rename, delete, detail view

SDK Platforms / Tools

  • packages Install, update, delete
  • accept SDK licenses

Emulator

  • Launch AVD

Setup Android SDK

Requirement

  • Install JDK 17 (Oracle JDK or OpenJDK)

Steps

  1. Create Folder for the SDK Root Path (E.g. C:/android/sdk)
  2. Create cmdline-tools folder inside the SDK Root (E.g. C:/android/sdk/cmdline-tools)
  3. Download Android SDK Command-line Tools https://developer.android.com/studio#command-line-tools-only
  4. Extract the files. You may get a folder call cmdline-tools and rename to latest
  5. Move latest folder to cmdline-tools Folder E.g. C:/android/sdk/cmdline-tools/latest

Folder Structure

  • C:/android/sdk/ (SDK Root)
    • cmdline-tools
      • latest (download from android.com)
        • lib
        • bin
          • avdmanager
          • sdkmanager

Remember update avdmanager.sdkPath to Android SDK Root Path It should work fine, if the folder structure is correct.

Setup guide

Setup Guide for sharing the SDK to Android Studio, VSCode and VSCode-like tools (E.g. VSCodium)

Extension Settings

Required

  • avdmanager.sdkPath : Android SDK Root Path The location of the Android SDK Root Path. If blank, it will attempt to find it from the ANDROID_SDK_ROOT or ANDROID_HOME environment variables.
  • avdmanager.cmdVersion: Android SDK Command-Line Tools Version (default=latest)

After updating the SDK Path. The AVD Manager will auto lookup all executable paths from the SDK.

Optional

  • avdmanager.avdmanager: AVD Manager executable path
  • avdmanager.avdHome: AVD Home path for AVDManager
  • avdmanager.sdkManager: SDK Manager executable path
  • avdmanager.emulator: Android emulator executable path
  • avdmanager.emulatorOpt: Android emulator execute options

Commands

  • avdmanager.pkg-update-all : Update All SDK Package
  • avdmanager.pkg-accept-license : Accept All SDK Licenses
  • avdmanager.setup-sdkpath : Update SDK Root Path
  • avdmanager.setup-avdmanager : Update AVDManage Path
  • avdmanager.setup-sdkmanager : Update SDKManage Path
  • avdmanager.setup-emulator : Update Emulator Path

Screenshot

AVD Manager

Create AVD [+ Button]

img

Create AVD - new AVD Name

img

Create AVD - device selection

img

Rename AVD [Pen Icon Button]

img

Open AVD config.ini [File Button] and Open AVD config folder [Folder Button]

img

Delete AVD [Right Click on AVD Name]

img

AVD Details [Mouseover on the AVD name]

img

SDK Platforms / Tools

Install packages (system-image, platforms, source-code)

Install SDK Tools E.g. Build-tools, cmake, emulator, etc.

Package Detail

Accept All SDK licenses [Double Check icon Button]

Update All SDK Package [Sync icon button]

Emulator

Launch AVD [Play icon Button]

img

Emulator Log

Links