Since last week I suddenly got this error message with my Robot framework Appium script. A few days later it did worked again. But now it got stuck again:
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C:\Users\rioch\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 install -g C:\WINDOWS\system32\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk' exited with code 1'; Command output: adb: failed to stat C:\WINDOWS\system32\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk: No such file or director
I just have no clue now. I checked everything and read pages of solutions from others:
- The existing of settings_apk-debug.apk file in the error message mentioned folder
- The existing of the folder WINDOWS\system32\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks
- Updated/checked: Java SDK, Android studio, Appium, NPM, Node, Robot Framework, Chrome drivers, Pycharm, Python, Selenium
- Allowed the ADB.exe to anti virus rules
- Update emulator
- Update real device
- Restart device many times
- Checked connected TCP daemon 5037
- Port 4723
- command adb devices recognize the emulator and real device
adb start-server and adb kill-server does not work anymore. However adb reconnect and adb devices does work.
Someone has the same problem and a solution? Many Thanks.