This extension tries to embed android emulator within the editor in a webview similar to Android Studio's implementation.
Android Emulator installed and available in your PATH ie. emulator should be accesible by the terminal or you can update embeddedAvd.emulatorPath to point to the binary
- Open Command Palette and run
Embedded AVD: Start - Select one of the emulators
- Node.js, pnpm, and VS Code
- Install dependencies:
pnpm install brew install protobuf (or your preferred way of installing packages)
- Install gRPC and codegen tools:
pnpm add -D ts-proto grpc-tools
- Generate TypeScript types from proto:
This will create typed gRPC client code in
protoc \ --plugin=./node_modules/.bin/protoc-gen-ts_proto \ --ts_proto_out=./src/generated \ --ts_proto_opt=esModuleInterop=true,outputServices=grpc-js \ -I ./src/proto \ ./src/proto/emulator_controller.proto
src/generated. - Configure the extension:
- Open Command Palette and run
Embedded AVD: Start - Select one of the emulators
- Open Command Palette and run
- Run the extension in VS Code Extension Development Host.
- Uses Android Emulator gRPC APIs for near-native performance
- Forwards touch, multi-touch, and keyboard events
- This is WIP and may not work at all as it is not tested on multiple platforms.
[] - Multiple AVDs