LoginSignup
2
2

More than 3 years have passed since last update.

クライアントPCのメモリ(8GB)ではAndroid Emulatorが遅いのでリモートPC(16GB)上のDocker-Androidでデバッグする

Last updated at Posted at 2019-11-10

経緯

クライアントPC(Windows10)はメモリ8GBであり、Android Emulatorを起動しつつ開発を行うと重くて話にならない。Android EmulatorはクライアントPC以外で起動したい。

前提

  1. Android Studioがインストール済みであること

手順

[リモートPC]
1. docker-androidからイメージをpull docker pull budtmo/docker-android-x86-7.0
2. 起動する docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container budtmo/docker-android-x86-7.0

[クライアントPC]
3. adbコマンドをpathに通す
4. adbコマンドでdeviceを接続する adb connect (リモートPCのIPアドレス):5555
5. adb devicesでdeviceが追加されていることを確認

adb devices
List of devices attached
192.168.0.xx:5555       device

image.png

2
2
0

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
2
2