6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Androidエミュレータのコマンドラインからの作成からの起動

6
Last updated at Posted at 2017-12-01

Android 4.4のエミュレータの作成をコマンドラインから行ってみましたので、メモとして記載しておきます。

# SDKのDL
cd /Users/**(ここはユーザー名)**/Library/Android/sdk/tools/bin
./sdkmanager "system-images;android-19;google_apis;x86"

# エミュレータの作成(デバイス指定はNexus 4となってますが他でも可能です)
./avdmanager create avd -n <名前> -k "system-images;android-19;google_apis;x86" -b x86 -c 100M -d 7 -f  --device 'Nexus 4'

# エミュレータの起動(画面サイズ指定)
cd /Users/**(ここはユーザー名)**/Library/Android/sdk/tools
./emulator -avd <名前> -skin 768x1280

Nexus 4以外も

avdmanager list device

で表示されるデバイスが指定できると思います。

ちなみにエミュレータの削除は

avdmanager delete avd -n <名前>

です。

6
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?