ラベル genymotion の投稿を表示しています。 すべての投稿を表示
ラベル genymotion の投稿を表示しています。 すべての投稿を表示

error: could not install *smartsocket* listener: Address already in use

adb command returns an error.
$ adb devices
(snip)
error: could not install *smartsocket* listener: Address already in use
(snip)
Change Genymotion settings below, to fix this error.

check 'Use custom Android SDK tools'

Genymotion Android エミュレータの hosts を書き換える

  1. Genymotion から hosts ファイルを引っ張ってくる
    $ adb -s 192.168.99.101:5555 pull /system/etc/hosts hosts
    
  2. hosts ファイルを書き換える
    $ vi hosts
    
  3. Genymotion の /system を書き込み可能でマウント
    $ adb -s 192.168.99.101:5555 remount
    
  4. Genymotion に書き換えた hosts ファイルを反映させる
    $ adb -s 192.168.99.101:5555 push hosts /system/etc