「The connection to adb is down, and a severe error has occured」エラーの対処法
eclipseでgenymotionを使ってAndroid JUnit Testを実行した時に出たエラー
1.一旦eclipseを終了する
2.android sdkのplatform-toolsディレクトリへ移動
$ cd android-sdk-macosx/platform-tools $ ls -l adb -rwxr-xr-x 1 wkodate staff 1270440 6 12 2014 adb
3.adbサーバのプロセスをkill
$ ./adb kill-server
プロセスを確認
$ ps aux | grep adb wkodate 2109 0.0 0.0 2432772 648 s001 S+ 10:36PM 0:00.00 grep adb
4.adbサーバのプロセスを起動
./adb start-server
プロセスを確認
$ ps aux | grep adb wkodate 2294 0.4 0.0 2450180 684 s001 S+ 10:49PM 0:00.01 grep adb wkodate 2249 0.0 0.0 629424 672 ?? S 10:40PM 0:00.08 /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/tools/adb -s 192.168.56.100:5555 logcat -v time wkodate 2247 0.0 0.0 629944 672 ?? S 10:40PM 0:00.04 /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/tools/adb -s 192.168.56.100:5555 shell wkodate 2243 0.0 0.0 633236 2084 ?? S 10:40PM 0:00.37 adb -P 5037 fork-server server
再度eclipseを起動してテストを実行することができた