Help us understand the problem. What is going on with this article?

Androidの開発環境構築において、emulatorで躓いたところ

More than 1 year has passed since last update.

emulatorの起動に失敗

Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
Failed to sync vcpu reg
emulator: Serial number of this emulator (for ADB): emulator-5554
emulator: ERROR: Unfortunately, there's an incompatibility between HAXM hypervisor and VirtualBox 4.3.30+ which doesn't allow multiple hypervisors to co-exist.  It is being actively worked on; you can find out more about the issue at http://b.android.com/197915 (Android) and https://www.virtualbox.org/ticket/14294 (VirtualBox)
Failed to sync vcpu reg
Failed to sync vcpu reg
Internal error: initial hax sync failed

VirtualBoxとAndroidエミュレータは同時に起動ができないため、エミュレータの起動に失敗していた。
DockerでVirtualBoxを使っていたので、Dockerを落としてからEmulatorを起動。

ローカルサーバに接続に失敗

androidのエミュレータから127.0.0.1に接続すると、エミュレータ自身への接続となってしまい、ローカルサーバには接続ができない。
10.0.2.2に接続することで、ローカルサーバへの接続可能。
Railsのwebrickで立ち上げている場合(port: 3000)、
http://10.0.2.2:3000
で、アクセスする事が出来る。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away