Android + appium で自動テストを行なっています。
appium のセッションを開始しようとした際、socket hang up のエラーが起こり、その解決方法を見つけるのに手こずったのでメモしておきます。
解決方法
Android の中の、appium に関連するものを全て削除します。
# appium に関連するものを抜き出す。 $ adb shell pm list package -f | grep appium # 基本的には以下の3つを消せば良いと思われる $ adb uninstall io.appium.settings $ adb uninstall io.appium.uiautomator2.server $ adb uninstall io.appium.uiautomator2.server.test
エラー全文
An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up