Работал Appium и перестал, вроде проблема с uiautomator2, все пререрыл не нашел решения.

Работало и перестало.
Запускаю тест, в эмуляторе Андроид вроде появляется Аппиум прыгает его окошко, но дальше приложение не открывается, даже просто браузер пробовал открыть. Порыскав в инете, вроде проблема в том что не может запустить uiautomator на андроиде. Через инспектора в Аппиуме тоже не хочет запускать, сразу появляется ошибка Could not start session
Прикрепляю код и лог. Помогите.

public class Sample {

     AndroidDriver driver;
     DesiredCapabilities cap;

    @Before
    public void setUp() throws MalformedURLException {
        cap = new DesiredCapabilities();
        cap.setCapability(MobileCapabilityType.DEVICE_NAME, "emulator-5554");
        cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); //platformName
        cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9"); //platformVersion
        cap.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome"); //browserName
        driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);
    }

    @Test
    public void runAppTest(){
        //TODO
    }
}

ЛОГИ

[info] e[35m[Appium]e[39m Welcome to Appium v1.15.0
[info] e[35m[Appium]e[39m Non-default server args:
[info] e[35m[Appium]e[39m   address: 127.0.0.1
[info] e[35m[Appium]e[39m   allowInsecure: {
[info] e[35m[Appium]e[39m   }
[info] e[35m[Appium]e[39m   denyInsecure: {
[info] e[35m[Appium]e[39m   }
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 127.0.0.1:4723[debug] e[35m[Instrumentation]e[39m INSTRUMENTATION_ABORTED: System has crashed.
[debug] e[35m[Instrumentation]e[39m The process has exited with code 0[info] e[35m[HTTP]e[39m e[37m-->e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{"desiredCapabilities":{"browserName":"Chrome","platformName":"Android","deviceName":"emulator-5554","platformVersion":"9"},"capabilities":{"firstMatch":[{"browserName":"Chrome","appium:deviceName":"emulator-5554","platformName":"android","appium:platformVersion":"9"}]}}e[39m
[debug] e[35m[W3C]e[39m Calling AppiumDriver.createSession() with args: [{"browserName":"Chrome","platformName":"Android","deviceName":"emulator-5554","platformVersion":"9"},null,{"firstMatch":[{"browserName":"Chrome","appium:deviceName":"emulator-5554","platformName":"android","appium:platformVersion":"9"}]}]
[debug] e[35m[BaseDriver]e[39m Event 'newSessionRequested' logged at 1571935838519 (19:50:38 GMT+0300 (Jerusalem Daylight Time))
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m ======================================================================
[warn] e[35m[Appium]e[39m   DEPRECATION WARNING:
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   The 'automationName' capability was not provided in the desired 
[warn] e[35m[Appium]e[39m   capabilities for this Android session
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   Setting 'automationName=UiAutomator2' by default and using the 
[warn] e[35m[Appium]e[39m   UiAutomator2 Driver
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   The next major version of Appium (2.x) will **require** the 
[warn] e[35m[Appium]e[39m   'automationName' capability to be set for all sessions on all 
[warn] e[35m[Appium]e[39m   platforms
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   In previous versions (Appium <= 1.13.x), the default was 
[warn] e[35m[Appium]e[39m   'automationName=UiAutomator1'
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   If you wish to use that automation instead of UiAutomator2, please 
[warn] e[35m[Appium]e[39m   add 'automationName=UiAutomator1' to your desired capabilities
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m   For more information about drivers, please visit 
[warn] e[35m[Appium]e[39m   http://appium.io/docs/en/about-appium/intro/ and explore the 
[warn] e[35m[Appium]e[39m   'Drivers' menu
[warn] e[35m[Appium]e[39m 
[warn] e[35m[Appium]e[39m ======================================================================
[warn] e[35m[Appium]e[39m 
[info] e[35m[Appium]e[39m Appium v1.15.0 creating new AndroidUiautomator2Driver (v1.37.1) session
[debug] e[35m[BaseDriver]e[39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {
[debug] e[35m[BaseDriver]e[39m   "alwaysMatch": {
[debug] e[35m[BaseDriver]e[39m     "browserName": "Chrome",
[debug] e[35m[BaseDriver]e[39m     "platformName": "android",
[debug] e[35m[BaseDriver]e[39m     "appium:deviceName": "emulator-5554",
[debug] e[35m[BaseDriver]e[39m     "appium:platformVersion": "9"
[debug] e[35m[BaseDriver]e[39m   },
[debug] e[35m[BaseDriver]e[39m   "firstMatch": [
[debug] e[35m[BaseDriver]e[39m     {}
[debug] e[35m[BaseDriver]e[39m   ]
[debug] e[35m[BaseDriver]e[39m }
[info] e[35m[BaseDriver]e[39m Session created with session id: 40dea542-bccc-4662-bf28-0c44bbf344e0
[info] e[35m[UiAutomator2]e[39m We're going to run a Chrome-based session
[info] e[35m[UiAutomator2]e[39m Chrome-type package and activity are com.android.chrome and com.google.android.apps.chrome.Main
[info] e[35m[UiAutomator2]e[39m Starting 'com.android.chrome' directly on the device[info] e[35m[ADB]e[39m Using 'adb.exe' from 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[info] e[35m[AndroidDriver]e[39m Retrieving device list
[debug] e[35m[ADB]e[39m Trying to find a connected android device
[debug] e[35m[ADB]e[39m Getting connected devices...
[debug] e[35m[ADB]e[39m Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] e[35m[AndroidDriver]e[39m Looking for a device with Android '9'
[debug] e[35m[ADB]e[39m Setting device id to emulator-5554
[info] e[35m[ADB]e[39m Getting device platform version
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'[debug] e[35m[ADB]e[39m Current device property 'ro.build.version.release': 9
[info] e[35m[AndroidDriver]e[39m Using device: emulator-5554
[info] e[35m[ADB]e[39m Using 'adb.exe' from 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[debug] e[35m[ADB]e[39m Setting device id to emulator-5554
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] e[35m[ADB]e[39m Current device property 'ro.build.version.sdk': 28
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] e[35m[ADB]e[39m Current device property 'ro.build.version.release': 9
[debug] e[35m[ADB]e[39m Device API level: 28
[warn] e[35m[UiAutomator2]e[39m Relaxing hidden api policy
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'[warn] e[35m[AndroidDriver]e[39m No app sent in, not parsing package/activity
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'
[debug] e[35m[AndroidDriver]e[39m Pushing settings apk to device...
[debug] e[35m[ADB]e[39m Getting install status for io.appium.settings
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[debug] e[35m[ADB]e[39m 'io.appium.settings' is not installed
[debug] e[35m[ADB]e[39m App 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' is not installed
[debug] e[35m[ADB]e[39m Installing 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''
[debug] e[35m[ADB]e[39m Got an error 'ls: /data/local/tmp/appium_cache: No such file or directory' while getting the list of files in the cache. Assuming the cache does not exist yet
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell mkdir -p /data/local/tmp/appium_cache'
[debug] e[35m[ADB]e[39m The count of applications in the cache: 0
[info] e[35m[ADB]e[39m Caching the application at 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' to '/data/local/tmp/appium_cache/3d97225b036c28750562ef8962defee6b1af19a4.apk'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell mkdir -p /data/local/tmp/appium_cache'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 push C:\\Users\\User\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\io.appium.settings\\apks\\settings_apk-debug.apk /data/local/tmp/appium_cache/3d97225b036c28750562ef8962defee6b1af19a4.apk'
[info] e[35m[ADB]e[39m The upload of 'settings_apk-debug.apk' (1.16 MB) took 0.192s
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm install -g /data/local/tmp/appium_cache/3d97225b036c28750562ef8962defee6b1af19a4.apk'[info] e[35m[ADB]e[39m The installation of 'settings_apk-debug.apk' took 0.228s
[debug] e[35m[ADB]e[39m Install command stdout: Success
[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'[debug] e[35m[Logcat]e[39m Starting logcat capture[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'[debug] e[35m[ADB]e[39m 'io.appium.uiautomator2.server' is not installed
[debug] e[35m[ADB]e[39m App 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' is not installed
[debug] e[35m[UiAutomator2]e[39m io.appium.uiautomator2.server installation state: notInstalled
[debug] e[35m[ADB]e[39m Checking app cert for C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk
[info] e[35m[ADB]e[39m Using 'apksigner.bat' from 'C:\Users\User\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat'
[debug] e[35m[ADB]e[39m Starting 'C:\Users\User\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\User\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.3.0.apk"]'[debug] e[35m[ADB]e[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] e[35m[ADB]e[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] e[35m[ADB]e[39m 
[debug] e[35m[ADB]e[39m 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' is already signed.
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server.test
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'[debug] e[35m[ADB]e[39m 'io.appium.uiautomator2.server.test' is not installed
[debug] e[35m[ADB]e[39m Checking app cert for C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] e[35m[ADB]e[39m Starting 'C:\Users\User\AppData\Local\Android\Sdk\build-tools\29.0.2\apksigner.bat' with args '["verify","--print-certs","C:\\Users\\User\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk"]'[debug] e[35m[ADB]e[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] e[35m[ADB]e[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] e[35m[ADB]e[39m 
[debug] e[35m[ADB]e[39m 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[info] e[35m[UiAutomator2]e[39m Server packages are going to be (re)installed
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''
[debug] e[35m[ADB]e[39m The count of applications in the cache: 1
[info] e[35m[ADB]e[39m Caching the application at 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' to '/data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell mkdir -p /data/local/tmp/appium_cache'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 push C:\\Users\\User\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.3.0.apk /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk'
[info] e[35m[ADB]e[39m The upload of 'appium-uiautomator2-server-v4.3.0.apk' (2.14 MB) took 0.243s
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm install -r /data/local/tmp/appium_cache/0cc1725a60a05dbb5d0d09256f2fc6ece7e3b10f.apk'[info] e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-v4.3.0.apk' took 0.391s
[debug] e[35m[ADB]e[39m Install command stdout: Success
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] e[35m[ADB]e[39m The count of applications in the cache: 2
[info] e[35m[ADB]e[39m Caching the application at 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' to '/data/local/tmp/appium_cache/cd247f042368990c9f33b2d7bf2390d8cf4f4e24.apk'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell mkdir -p /data/local/tmp/appium_cache'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 push C:\\Users\\User\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk /data/local/tmp/appium_cache/cd247f042368990c9f33b2d7bf2390d8cf4f4e24.apk'[info] e[35m[ADB]e[39m The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 0.332s
[debug] e[35m[ADB]e[39m Install command stdout: Success
[debug] e[35m[UiAutomator2]e[39m Waiting up to 30000ms for services to be available
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm list instrumentation'[debug] e[35m[UiAutomator2]e[39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[debug] e[35m[UiAutomator2]e[39m Forwarding UiAutomator2 Server port 6790 to 8200
[debug] e[35m[ADB]e[39m Forwarding system: 8200 to device: 6790
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp\:8200 tcp\:6790'
[debug] e[35m[UiAutomator2]e[39m No app capability. Assuming it is already on the device
[debug] e[35m[ADB]e[39m Getting install status for com.android.chrome
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.android.chrome'[debug] e[35m[ADB]e[39m 'com.android.chrome' is installed
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.android.chrome'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm clear com.android.chrome'[debug] e[35m[AndroidDriver]e[39m Performed fast reset on the installed 'com.android.chrome' application (stop and clear)
[debug] e[35m[UiAutomator2]e[39m Performing shallow cleanup of automation leftovers
[debug] e[35m[UiAutomator2]e[39m No obsolete sessions have been detected (Error: Invalid protocol: 192.168.0.101:)
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'[info] e[35m[UiAutomator2]e[39m Starting UIAutomator2 server 4.3.0
[info] e[35m[UiAutomator2]e[39m Using UIAutomator2 server from 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.3.0.apk' and test from 'C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[info] e[35m[UiAutomator2]e[39m Waiting up to 30000ms for UiAutomator2 to be online...
[debug] e[35m[ADB]e[39m Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"][debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[Instrumentation]e[39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}[debug] e[35m[WD Proxy]e[39m Matched '/status' to command name 'getStatus'
[debug] e[35m[WD Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[info] e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {}
[error] e[35m[UiAutomator2]e[39m Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability. 
[error] e[35m[UiAutomator2]e[39m     at Object.wrappedLogger.errorAndThrow (C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
[error] e[35m[UiAutomator2]e[39m     at UiAutomator2Server.errorAndThrow [as startSession] (C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:216:15)
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 server session
[debug] e[35m[WD Proxy]e[39m Matched '/' to command name 'deleteSession'
[warn] e[35m[UiAutomator2]e[39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] e[35m[Logcat]e[39m Stopping logcat capture
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 8200 
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[info] e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'[debug] e[35m[ADB]e[39m Running 'C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'
[debug] e[35m[BaseDriver]e[39m Event 'newSessionStarted' logged at 1571935880100 (19:51:20 GMT+0300 (Jerusalem Daylight Time))
[debug] e[35m[W3C]e[39m Encountered internal error running command: Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability. 
[debug] e[35m[W3C]e[39m     at Object.wrappedLogger.errorAndThrow (C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:79:13)
[debug] e[35m[W3C]e[39m     at UiAutomator2Server.errorAndThrow [as startSession] (C:\Users\User\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:216:15)
[info] e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m41583 ms - 1188e[39m
[info] e[35m[HTTP]e[39m e[90me[39m

у меня вот так капабилити передается

“applicationName”: “0133de86d440a2aa”,
“platform”: “ANDROID”,
“browserName”: “android”,
“version”: “8.1.0”,
“maxInstances”: 1,
“udid”: “0133de86d440a2aa”

2 лайка

Vot s “logcat output” i mozno nachat’

1 лайк

у меня вот так капабилити передается

Не не сработает. Вообще я запускаю на эмуляторе.
По документации Адроид не пишется с больших букв, имя браузера странно но такого нет, пишется platformVersion а не просто версия и platformName, может ты по памяти написал… Спасиб за попытку.

Vot s “logcat output” i mozno nachat’

попробовал увеличить до 50 000 но и так 30 секунд пытается куда еще больше, но и 50 сек тож не сработало. Где то читал что это из за того что винда не дает из за permissions, я пробовал дать полный доступ.

Выяснилось, что если запустить из под юзера Администратор то все работает.
Буду разбираться почему на моем юзере не работает хотя он в группе администраторы.