명령줄 에뮬레이터

명령줄에서 Android Emulator 실행

명령줄에서 Android Emulator 실행을 활성화하려면 Android SDK에서 제공하는 "에뮬레이터" 도구를 사용하면 됩니다. 이 도구는 OS X의 터미널 또는 Windows 컴퓨터의 명령 프롬프트에서 에뮬레이터를 실행하는 데 사용할 수 있습니다.

특정 Android Emulator를 시작하려면 Android SDK 위치의 tools 디렉터리(예: C:\android-sdk-windows\tools)에서 다음 명령을 실행합니다.

Windows

emulator.exe -avd NameOfYourEmulator -partition-size 512

macOS

./emulator -avd NameOfYourEmulator -partition-size 512

이 파티션 크기가 필요한 이유는 기본적으로 에뮬레이터의 크기가 작으므로 에뮬레이터에 Xamarin.Android 플랫폼을 설치할 충분한 공간을 확보하도록 하기 위해서입니다.

추가 매개 변수에 대한 자세한 내용은 Android 사이트에서 확인할 수 있습니다. https://developer.android.com/studio/run/emulator-commandline