Skip to content

Instantly share code, notes, and snippets.

@dpgraham
Created May 17, 2018 23:25
Show Gist options
  • Save dpgraham/97eda5fff67673814b9abd5c6b8e908e to your computer and use it in GitHub Desktop.
Save dpgraham/97eda5fff67673814b9abd5c6b8e908e to your computer and use it in GitHub Desktop.
[Appium] Creating new AndroidUiautomator2Driver (v1.12.0) session
[Appium] Capabilities:
[Appium] app: http://appium.github.io/appium/assets/ApiDemos-debug.apk
[Appium] automationName: UIAutomator2
[Appium] deviceName: Device
[Appium] forceEspressoRebuild: false
[Appium] fullReset: true
[Appium] platformName: Android
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"app":"http://appium.githu...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: forceEspressoRebuild, connectHardwareKeyboard.
[BaseDriver] Session created with session id: c6e95d84-d5f3-48df-bf5d-f984bd6074b7
[BaseDriver] Using downloadable app 'http://appium.github.io/appium/assets/ApiDemos-debug.apk'
[debug] [BaseDriver] 'http://appium.github.io/appium/assets/ApiDemos-debug.apk' downloaded to '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [BaseDriver] Downloaded file type 'application/vnd.android.package-archive'
[BaseDriver] Downloaded the app to '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [BaseDriver] Got 'undefined' as 'Last-Modified' HEAD response header value of 'http://appium.github.io/appium/assets/ApiDemos-debug.apk'
[BaseDriver] Skipping 'http://appium.github.io/appium/assets/ApiDemos-debug.apk' caching, because the HEAD response didn't return any valid Last-Modified headers
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: emulator-5554
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 27
[debug] [ADB] Device API level: 27
[debug] [AndroidDriver] Parsing package and activity from app manifest
[debug] [ADB] Starting '/Users/danielgraham/Library/Android/sdk/tools/bin/apkanalyzer' with args ["-h","manifest","print","/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk"]
[ADB] Package name: 'io.appium.android.apis'
[ADB] Main activity name: 'ApiDemos'
[debug] [AndroidDriver] Parsed package and activity are: io.appium.android.apis/ApiDemos
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': P
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell wm size'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell wm density'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': Android SDK built for x86
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': Google
[debug] [ADB] Device API level: 27
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Checking app cert for /Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.11.0.apk
[debug] [ADB] Starting '/Users/danielgraham/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'verify,--print-certs,/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.11.0.apk'
[debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0
[debug] [ADB] '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.11.0.apk' is already signed.
[debug] [ADB] Checking app cert for /Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting '/Users/danielgraham/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'verify,--print-certs,/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.11.0' >= '1.11.0')
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'
[ADB] Cannot read version codes of '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'
[ADB] Cannot read version names of '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Device API level: 27
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.unlock'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.unlock'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.unlock'
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8201
[debug] [ADB] Forwarding system: 8201 to device: 6790
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8201 tcp\:6790'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell rm -rf /data/local/tmp/strings.json'
[debug] [AndroidDriver] Extracting strings from apk
[debug] [AndroidDriver] /var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk
[debug] [AndroidDriver] null
[debug] [AndroidDriver] /var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/io.appium.android.apis
[debug] [ADB] Extracting strings for language: default
[ADB] Successfully extracted 942 strings from '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk' resources for '(default)' configuration
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 push /var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/io.appium.android.apis/strings.json /data/local/tmp'
[debug] [ADB] Uninstalling io.appium.android.apis
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.android.apis'
[debug] [ADB] App is not installed
[ADB] io.appium.android.apis was not uninstalled, because it was not present on the device
[debug] [ADB] Checking app cert for /var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk
[debug] [ADB] Starting '/Users/danielgraham/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'verify,--print-certs,/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [ADB] '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [ADB] Signing '/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk' with default cert
[debug] [ADB] Starting '/Users/danielgraham/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'sign,--key,/Users/danielgraham/appium/node_modules/appium-adb/keys/testkey.pk8,--cert,/Users/danielgraham/appium/node_modules/appium-adb/keys/testkey.x509.pem,/var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.android.apis'
[debug] [ADB] App is not installed
[debug] [AndroidDriver] Running full reset on 'io.appium.android.apis' (reinstall)
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install -r /var/folders/j8/1dpn_z757gsf50s15tb7szvc0000gn/T/2018417-7283-16j3ms9.yksjk/appium-app.apk'
[debug] [ADB] Install command stdout:
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting uiautomator2 server 1.11.0
[UiAutomator2] Using UIAutomator2 server from '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.11.0.apk' and test from '/Users/danielgraham/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s emulator-5554 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8201/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"http://appium.github.io/appium/assets/ApiDemos-debug.apk","automationName":"UIAutomator2","deviceName":"Device","forceEspressoRebuild":false,"fullReset":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},"app":"http://appium.github.io/appium/assets/ApiDemos-debug.apk","automationName":"UIAutomator2","deviceName":"emulator-5554","forceEspressoRebuild":false,"fullReset":true,"platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true,"deviceUDID":"emulator-5554","platformVersion":"P","deviceScreenSize":"1080x1920","deviceScreenDensity":420,"deviceModel":"Android SDK built for x86","deviceManufacturer":"Google","deviceApiLevel":27,"appPackage":"io.appium.android.apis"}}
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.android.apis'
[debug] [UiAutomator2] Capability 'fullReset' set to 'true', Uninstalling 'io.appium.android.apis'
[debug] [ADB] Uninstalling io.appium.android.apis
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list packages io.appium.android.apis'
[debug] [ADB] App is installed
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.android.apis'
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 uninstall io.appium.android.apis'
[debug] [ADB] 'adb uninstall io.appium.android.apis' command output: Success
[ADB] io.appium.android.apis was successfully uninstalled
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8201
[debug] [ADB] Running '/Users/danielgraham/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8201'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1526599404034 (16:23:24 GMT-0700 (PDT))
[MJSONWP] Encountered internal error running command: {"w3cStatus":400,"jsonwp":{"sessionId":null,"status":13,"value":"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: error while getting field mOnAccessibilityEventListener from object android.app.UiAutomation@b9dc114\n\tat io.appium.uiautomator2.utils.ReflectionUtils.getField(ReflectionUtils.java:75)\n\tat io.appium.uiautomator2.core.UiAutomation.getOnAccessibilityEventListener(UiAutomation.java:38)\n\tat io.appium.uiautomator2.model.NotificationListener.isListening(NotificationListener.java:89)\n\tat io.appium.uiautomator2.model.NotificationListener.start(NotificationListener.java:54)\n\tat io.appium.uiautomator2.model.Session.<init>(Session.java:28)\n\tat io.appium.uiautomator2.model.AppiumUiAutomatorDriver.initializeSession(AppiumUiAutomatorDriver.java:28)\n\tat io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:23)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:65)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:247)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:238)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)\n\tat java.lang.Thread.run(Thread.java:764)\nCaused by: java.lang.NoSuchFieldException: No field mOnAccessibilityEventListener in class Landroid/app/UiAutomation; (declaration of 'android.app.UiAutomation' appears in /system/framework/framework.jar)\n\tat java.lang.Class.getDeclaredField(Native Method)\n\tat io.appium.uiautomator2.utils.ReflectionUtils.getField(ReflectionUtils.java:68)\n\t... 36 more\n"}} ProxyRequestError: Could not proxy command to remote server. Original error: 500 - {"sessionId":null,"status":13,"value":"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: error while getting field mOnAccessibilityEventListener from object android.app.UiAutomation@b9dc114\n\tat io.appium.uiautomator2.utils.ReflectionUtils.getField(ReflectionUtils.java:75)\n\tat io.appium.uiautomator2.core.UiAutomation.getOnAccessibilityEventListener(UiAutomation.java:38)\n\tat io.appium.uiautomator2.model.NotificationListener.isListening(NotificationListener.java:89)\n\tat io.appium.uiautomator2.model.NotificationListener.start(NotificationListener.java:54)\n\tat io.appium.uiautomator2.model.Session.<init>(Session.java:28)\n\tat io.appium.uiautomator2.model.AppiumUiAutomatorDriver.initializeSession(AppiumUiAutomatorDriver.java:28)\n\tat io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:23)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:65)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:247)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:238)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)\n\tat java.lang.Thread.run(Thread.java:764)\nCaused by: java.lang.NoSuchFieldException: No field mOnAccessibilityEventListener in class Landroid/app/UiAutomation; (declaration of 'android.app.UiAutomation' appears in /system/framework/framework.jar)\n\tat java.lang.Class.getDeclaredField(Native Method)\n\tat io.appium.uiautomator2.utils.ReflectionUtils.getField(ReflectionUtils.java:68)\n\t... 36 more\n"}
[MJSONWP] at JWProxy.proxy$ (/Users/danielgraham/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:152:13)
[MJSONWP] at tryCatch (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[MJSONWP] at GeneratorFunctionPrototype.invoke (/Users/danielgraham/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownErro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment