Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot connect to the Dart Observatory URL" #756

Open
andrew-pillyze opened this issue Dec 2, 2024 · 2 comments
Open

"Cannot connect to the Dart Observatory URL" #756

andrew-pillyze opened this issue Dec 2, 2024 · 2 comments
Labels
question Further information is requested

Comments

@andrew-pillyze
Copy link

andrew-pillyze commented Dec 2, 2024

Hi, Can someone help to solve this issue?

  1. I set the flutter driver in my project like this.
dev_dependencies:
  flutter_driver:
    sdk: flutter
...
  1. And I also add a code line enableFlutterDriverExtension(); in the void main()
Future<void> main() async {
    WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
    enableFlutterDriverExtension();
...
  1. And I installed the appium v2.12.2 with some drivers.
andrew@andrewui-MacBookPro ~ % appium -v
2.12.2
andrew@andrewui-MacBookPro ~ % appium driver list   
✔ Listing available drivers
- [email protected] [installed (npm)]
- [email protected] [installed (npm)]
- [email protected] [installed (npm)]
- xcuitest [not installed]
- espresso [not installed]
- mac2 [not installed]
- windows [not installed]
- safari [not installed]
- gecko [not installed]
- chromium [not installed]

But, when I run a my test code, I got a "Cannot connect to the Dart Observatory URL" error and I couldn't solve it..

Doctor

SKIP_ANDROID=1 appium driver doctor flutter

Running 5 doctor checks for the "flutter" driver
info Doctor ### Starting doctor diagnostics  ###
info Doctor  ✔ HOME is set to: /Users/andrew
info Doctor  ✔ applesimutils is installed at: /opt/homebrew/bin/applesimutils
info Doctor  ✔ ffmpeg exists at '/opt/homebrew/bin/ffmpeg'
info Doctor  ✔ xCode is installed at '/Applications/Xcode.app/Contents/Developer'
info Doctor  ✔ xCode tools are installed and work properly
info Doctor ### Diagnostic completed, 0 required fixes needed, 0 optional fixes possible. ###
info Doctor 
info Doctor Everything looks good, bye!
info Doctor 

flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.4 23E214 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

StackTrace of Client

2024-12-02T09:11:44.152Z ERROR webdriver: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:37217/a2d0eAatFlc=/ws. Check the server log for more details when running "http://localhost:4723/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}}"
2024-12-02T09:11:44.152Z ERROR webdriver: unknown error: WebDriverError: An unknown server-side error occurred while processing the command. Original error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:37217/a2d0eAatFlc=/ws. Check the server log for more details when running "http://localhost:4723/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}}"
    at FetchRequest._request (file:///Users/andrew/node_modules/webdriver/build/node.js:1652:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async startWebDriverSession (file:///Users/andrew/node_modules/webdriver/build/node.js:1022:16)
    at async _WebDriver.newSession (file:///Users/andrew/node_modules/webdriver/build/node.js:1238:41)
    at async remote (file:///Users/andrew/node_modules/webdriverio/build/index.js:7810:20)
    at async /Users/andrew/Documents/GitHub/retinol-app/appium/test.js:29:20
An error occurred: Error: Failed to create session.
WebDriverError: An unknown server-side error occurred while processing the command. Original error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:37217/a2d0eAatFlc=/ws. Check the server log for more details when running "http://localhost:4723/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}}"
    at startWebDriverSession (file:///Users/andrew/node_modules/webdriver/build/node.js:1026:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async _WebDriver.newSession (file:///Users/andrew/node_modules/webdriver/build/node.js:1238:41)
    at async remote (file:///Users/andrew/node_modules/webdriverio/build/index.js:7810:20)
    at async /Users/andrew/Documents/GitHub/retinol-app/appium/test.js:29:20

Node JS source code

const wdio = require('webdriverio');
const assert = require('assert');
const { FlutterFinder } = require('appium-flutter-finder');
const path = require('path');

const osSpecificOps = {
  'platformName': 'Android',
  'appium:deviceName': 'R3CWC0F7AXF',
  'appium:app': path.join(__dirname, '../build/app/outputs/flutter-apk/app-debug.apk')
};

if (Object.keys(osSpecificOps).length === 0) {
  console.error('Environment variable APPIUM_OS not set correctly. It should be either "android" or "ios".');
  process.exit(1);
}

const opts = {
  port: 4723,
  capabilities: {
    ...osSpecificOps,
    'appium:automationName': 'Flutter',
    'appium:maxRetryCount': 2,
    'appium:autoGrantPermissions': true,
  }
};

(async () => {
  try {
    const driver = await wdio.remote(opts);
    const finder = new FlutterFinder();

    const element = await driver.execute('flutter', 'waitFor', finder.byValueKey('kakao_login_button'));
    await driver.execute('flutter', 'tap', finder.byValueKey('kakao_login_button'));

    await driver.deleteSession();
  } catch (error) {
    console.error('An error occurred:', error);
  }
})();

Thank you for checking!

@andrew-pillyze
Copy link
Author

Appium Server Log

[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}}
[AppiumDriver@5fa7] Calling AppiumDriver.createSession() with args: [null,null,{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}]
[AppiumDriver@5fa7] Event 'newSessionRequested' logged at 1733130666048 (18:11:06 GMT+0900 (대한민국 표준시))
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'Android'
[Appium] The 'flutter' driver was installed and matched caps.
[Appium] Will require it at /Users/andrew/node_modules/appium-flutter-driver
[Appium] Requiring driver at /Users/andrew/node_modules/appium-flutter-driver/build/lib/driver.js
[AppiumDriver@5fa7] Appium v2.12.2 creating new FlutterDriver (v2.10.0) session
[AppiumDriver@5fa7] Checking BaseDriver versions for Appium and FlutterDriver
[AppiumDriver@5fa7] Appium's BaseDriver version is 9.12.2
[AppiumDriver@5fa7] FlutterDriver's BaseDriver version is 9.12.1
[FlutterDriver@2788] 
[FlutterDriver@2788] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "Android",
    "appium:deviceName": "R3CWC0F7AXF",
    "appium:app": "/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk",
    "appium:automationName": "Flutter",
    "appium:maxRetryCount": 2,
    "appium:autoGrantPermissions": true
  },
  "firstMatch": [
    {}
  ]
}
[FlutterDriver@2788] The following provided capabilities were not recognized by this driver:
[FlutterDriver@2788]   deviceName
[FlutterDriver@2788]   autoGrantPermissions
[ed5f65d8][FlutterDriver@2788] Session created with session id: ed5f65d8-3262-4168-b590-caf05a3c9957
[ed5f65d8][FlutterDriver@2788] Starting an Android proxy session
[ed5f65d8][AndroidUiautomator2Driver@dbd7] 
[ed5f65d8][AndroidUiautomator2Driver@dbd7] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "Android",
    "appium:deviceName": "R3CWC0F7AXF",
    "appium:app": "/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk",
    "appium:automationName": "Flutter",
    "appium:maxRetryCount": 2,
    "appium:autoGrantPermissions": true
  },
  "firstMatch": [
    {}
  ]
}
[ed5f65d8][AndroidUiautomator2Driver@dbd7] The following provided capabilities were not recognized by this driver:
[ed5f65d8][AndroidUiautomator2Driver@dbd7]   maxRetryCount
[ae74810d][AndroidUiautomator2Driver@dbd7] Session created with session id: ae74810d-0daf-4677-8b30-2afdc3f9dc96
[ae74810d][ADB] Using 'adb' from '/Users/andrew/Library/Android/sdk/platform-tools/adb'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[ae74810d][AndroidUiautomator2Driver@dbd7] Retrieving device list
[ae74810d][ADB] Trying to find connected Android devices
[ae74810d][ADB] Getting connected devices
[ae74810d][ADB] Connected devices: [{"udid":"R3CWC0F7AXF","state":"device"}]
[ae74810d][AndroidUiautomator2Driver@dbd7] Using device: R3CWC0F7AXF
[ae74810d][ADB] Using 'adb' from '/Users/andrew/Library/Android/sdk/platform-tools/adb'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[ae74810d][ADB] Setting device id to R3CWC0F7AXF
[ae74810d][BaseDriver] Using local app '/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[ae74810d][AndroidUiautomator2Driver@dbd7] Checking whether app is actually present
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell getprop ro.build.version.sdk'
[ae74810d][ADB] Current device property 'ro.build.version.sdk': 34
[ae74810d][ADB] Getting device platform version
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell getprop ro.build.version.release'
[ae74810d][ADB] Current device property 'ro.build.version.release': 14
[ae74810d][ADB] Device API level: 34
[ae74810d][AndroidUiautomator2Driver@dbd7] Relaxing hidden api policy
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[ae74810d][AndroidUiautomator2Driver@dbd7] Parsing package and activity from app manifest
[ae74810d][AndroidUiautomator2Driver@dbd7] Pushing settings apk to the device...
[ae74810d][ADB] Getting package info for 'io.appium.settings'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package io.appium.settings'
[ae74810d][ADB] Using 'aapt2' from '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2'
[ae74810d][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[ae74810d][ADB] Package name: 'com.pillyze.health.dev'
[ae74810d][ADB] Main activity name: 'com.pillyze.health.MainActivity'
[ae74810d][AndroidUiautomator2Driver@dbd7] Parsed package and activity are: com.pillyze.health.dev/com.pillyze.health.MainActivity
[ae74810d][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[ae74810d][ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('5.12.16' >= '5.12.16')
[ae74810d][ADB] There is no need to install/upgrade '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys activity services io.appium.settings'
[ae74810d][AndroidUiautomator2Driver@dbd7] io.appium.settings is already running. There is no need to reset its permissions.
[ae74810d][Logcat] Starting logs capture with command: /Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF logcat -v threadtime
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell appops set io.appium.settings android:mock_location allow'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell "[ -e '/data/local/tmp/mock_apps.json' ] && echo __PASS__"'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cat /data/local/tmp/mock_apps.json'
[ae74810d][AndroidUiautomator2Driver@dbd7] Forwarding UiAutomator2 Server port 6790 to local port 8213
[ae74810d][ADB] Forwarding system: 8213 to device: 6790
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF forward tcp:8213 tcp:6790'
[ae74810d][ADB] Getting package info for 'io.appium.uiautomator2.server'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package io.appium.uiautomator2.server'
[ae74810d][ADB] Getting install status for io.appium.uiautomator2.server.test
[ae74810d][ADB] Checking app cert for /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages --user 0'
[ae74810d][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk'
[ae74810d][ADB] 'io.appium.uiautomator2.server.test' is installed
[ae74810d][ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('7.1.1' >= '7.1.1')
[ae74810d][AndroidUiautomator2Driver@dbd7] Server packages status: [{"installState":"sameVersionInstalled","appPath":"/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk","appId":"io.appium.uiautomator2.server"},{"installState":"sameVersionInstalled","appPath":"/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk","appId":"io.appium.uiautomator2.server.test"}]
[ae74810d][AndroidUiautomator2Driver@dbd7] Server packages are not going to be (re)installed
[ae74810d][AndroidUiautomator2Driver@dbd7] Waiting up to 30000ms for services to be available
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm list instrumentation'
[ae74810d][AndroidUiautomator2Driver@dbd7] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[ae74810d][ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[ae74810d][ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[ae74810d][ADB] Using the previously cached signature entry for 'app-debug.apk'
[ae74810d][ADB] Getting package info for 'com.pillyze.health.dev'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package com.pillyze.health.dev'
[ae74810d][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[ae74810d][ADB] The version name of the installed 'com.pillyze.health.dev' is greater or equal to the application version name ('1.9.3' >= '1.9.3')
[ae74810d][ADB] There is no need to install/upgrade '/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[ae74810d][AndroidUiautomator2Driver@dbd7] Performing fast reset on 'com.pillyze.health.dev'
[ae74810d][ADB] Getting install status for com.pillyze.health.dev
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages --user 0'
[ae74810d][ADB] 'com.pillyze.health.dev' is installed
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop com.pillyze.health.dev'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm clear com.pillyze.health.dev'
[25c0a8e9][FlutterDriver@608c] Connection to ws://127.0.0.1:39099/NP_ajzzQxis=/ws closed
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package com.pillyze.health.dev'
[ae74810d][ADB] Retrieving requested permissions
[ae74810d][ADB] Retrieved 34 permissions from requested group
[ae74810d][ADB] Retrieving granted permissions
[ae74810d][ADB] Retrieved 14 permissions from install,runtime groups
[ae74810d][ADB] Granting permissions ["android.permission.READ_CONTACTS","android.permission.WRITE_CONTACTS","android.permission.READ_EXTERNAL_STORAGE","android.permission.READ_MEDIA_IMAGES","android.permission.READ_MEDIA_VIDEO","android.permission.CAMERA","android.permission.ACTIVITY_RECOGNITION","android.permission.ACCESS_COARSE_LOCATION","android.permission.ACCESS_FINE_LOCATION","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.READ_PHONE_NUMBERS","android.permission.RECORD_AUDIO","android.permission.POST_NOTIFICATIONS","android.permission.READ_MEDIA_VISUAL_USER_SELECTED"] to 'com.pillyze.health.dev'
[ae74810d][ADB] Got the following command chunks to execute: [["pm","grant","com.pillyze.health.dev","android.permission.READ_CONTACTS",";","pm","grant","com.pillyze.health.dev","android.permission.WRITE_CONTACTS",";","pm","grant","com.pillyze.health.dev","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_IMAGES",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_VIDEO",";","pm","grant","com.pillyze.health.dev","android.permission.CAMERA",";","pm","grant","com.pillyze.health.dev","android.permission.ACTIVITY_RECOGNITION",";","pm","grant","com.pillyze.health.dev","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","com.pillyze.health.dev","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";"],["pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.READ_PHONE_NUMBERS",";","pm","grant","com.pillyze.health.dev","android.permission.RECORD_AUDIO",";","pm","grant","com.pillyze.health.dev","android.permission.POST_NOTIFICATIONS",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_VISUAL_USER_SELECTED",";"]]
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm grant com.pillyze.health.dev android.permission.READ_CONTACTS ; pm grant com.pillyze.health.dev android.permission.WRITE_CONTACTS ; pm grant com.pillyze.health.dev android.permission.READ_EXTERNAL_STORAGE ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_IMAGES ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_VIDEO ; pm grant com.pillyze.health.dev android.permission.CAMERA ; pm grant com.pillyze.health.dev android.permission.ACTIVITY_RECOGNITION ; pm grant com.pillyze.health.dev android.permission.ACCESS_COARSE_LOCATION ; pm grant com.pillyze.health.dev android.permission.ACCESS_FINE_LOCATION ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ;'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.READ_PHONE_NUMBERS ; pm grant com.pillyze.health.dev android.permission.RECORD_AUDIO ; pm grant com.pillyze.health.dev android.permission.POST_NOTIFICATIONS ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_VISUAL_USER_SELECTED ;'
[ae74810d][AndroidUiautomator2Driver@dbd7] Performed fast reset on the installed 'com.pillyze.health.dev' application (stop and clear)
[ae74810d][AndroidUiautomator2Driver@dbd7] Performing shallow cleanup of automation leftovers
[ae74810d][AndroidUiautomator2Driver@dbd7] The following obsolete sessions are still running: ["fce25255-12ed-4e1b-b11e-bc5067362694"]
[ae74810d][AndroidUiautomator2Driver@dbd7] Cleaning up 1 obsolete session
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] 
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] Time: 207.096
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] 
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] OK (1 test)
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] 
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] 
[25c0a8e9][AndroidUiautomator2Driver@f1ce] [Instrumentation] The process has exited with code 0, signal null
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:04:16.870 21147 21295 I flutter : The Dart VM service is listening on http://127.0.0.1:38779/DFZQmwjz6kM=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:04:25.997 22283 22425 I flutter : The Dart VM service is listening on http://127.0.0.1:34923/AgNBfjx1wdQ=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:04:35.547 22913 23052 I flutter : The Dart VM service is listening on http://127.0.0.1:36943/sN80MHFPgYo=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:04:45.734 23552 23690 I flutter : The Dart VM service is listening on http://127.0.0.1:39293/4jSz8G6OR-U=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:06:09.474 24669 24823 I flutter : The Dart VM service is listening on http://127.0.0.1:43857/01PJAPaIYqI=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:06:18.244 25325 25460 I flutter : The Dart VM service is listening on http://127.0.0.1:39641/605O50dHCyo=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:06:27.489 25967 26113 I flutter : The Dart VM service is listening on http://127.0.0.1:34737/T7Q2YZeiUi0=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:06:37.390 26574 26783 I flutter : The Dart VM service is listening on http://127.0.0.1:44951/vOvinSvdqNM=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:07:16.355 27537 27671 I flutter : The Dart VM service is listening on http://127.0.0.1:40971/QM0m4TIdd3M=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:07:25.382 28195 28332 I flutter : The Dart VM service is listening on http://127.0.0.1:39267/5LfwNqPHdVM=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:07:34.678 28822 28967 I flutter : The Dart VM service is listening on http://127.0.0.1:34077/IlVgerFaNNs=/'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:07:44.935 29469 29610 I flutter : The Dart VM service is listening on http://127.0.0.1:39099/NP_ajzzQxis=/'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop io.appium.uiautomator2.server'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop io.appium.uiautomator2.server.test'
[ae74810d][AndroidUiautomator2Driver@dbd7] Starting UIAutomator2 server 7.1.1
[ae74810d][AndroidUiautomator2Driver@dbd7] Using UIAutomator2 server from '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk' and test from '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[ae74810d][AndroidUiautomator2Driver@dbd7] Waiting up to 30000ms for UiAutomator2 to be online...
[ae74810d][ADB] Creating ADB subprocess with args: ["-P","5037","-s","R3CWC0F7AXF","shell","am","instrument","-w","-e","disableAnalytics","true","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/status' to command name 'getStatus'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /status] to [GET http://127.0.0.1:8213/status] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] socket hang up
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] 
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/status' to command name 'getStatus'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /status] to [GET http://127.0.0.1:8213/status] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] socket hang up
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/status' to command name 'getStatus'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /status] to [GET http://127.0.0.1:8213/status] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[ae74810d][AndroidUiautomator2Driver@dbd7] The initialization of the instrumentation process took 2065ms
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/session' to command name 'createSession'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [POST /session] to [POST http://127.0.0.1:8213/session] with body: {"capabilities":{"firstMatch":[{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true},"deviceUDID":"R3CWC0F7AXF","appPackage":"com.pillyze.health.dev"}],"alwaysMatch":{}}}
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"29dcc386-e857-400b-919c-6443b5936803","value":{"capabilities":{"firstMatch":[{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true},"deviceUDID":"R3CWC0F7AXF","appPackage":"com.pillyze.health.dev"}],"alwaysMatch":{}},"sessionId":"29dcc386-e857-400b-919c-6443b5936803"}}
[ae74810d][AndroidUiautomator2Driver@dbd7] Determined the downstream protocol as 'W3C'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8213/session/29dcc386-e857-400b-919c-6443b5936803/appium/device/pixel_ratio] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8213/session/29dcc386-e857-400b-919c-6443b5936803/appium/device/system_bars] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] Matched '/window/current/size' to command name 'getWindowSize'
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8213/session/29dcc386-e857-400b-919c-6443b5936803/window/current/size] with no body
[ae74810d][AndroidUiautomator2Driver@dbd7] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8213/session/29dcc386-e857-400b-919c-6443b5936803/appium/device/info] with no body
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys window'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys power'
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"29dcc386-e857-400b-919c-6443b5936803","value":4}
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"29dcc386-e857-400b-919c-6443b5936803","value":{"height":3120,"width":1440}}
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"29dcc386-e857-400b-919c-6443b5936803","value":{"statusBar":101}}
[ae74810d][AndroidUiautomator2Driver@dbd7] Got response with status 200: {"sessionId":"29dcc386-e857-400b-919c-6443b5936803","value":{"androidId":"8057c30c78d4f19a","apiVersion":"34","bluetooth":{"state":"ON"},"brand":"samsung","carrierName":"KT","displayDensity":640,"locale":"ko_KR","manufacturer":"samsung","model":"SM-S928N","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":22246,"linkUpstreamBandwidthKbps":7543,"networkCapabilities":"NET_CAPABILITY_MMS,NET_CAPABILITY_IMS,NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-2147483648,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"IMS","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":13,"subtypeName":"LTE","type":0,"typeName":"MOBILE"},{"capabilities":{"SSID":null,"linkDownBandwidthKbps":22246,"linkUpstreamBandwidthKbps":7...
[ae74810d][AndroidUiautomator2Driver@dbd7] Screen already unlocked, doing nothing
[ae74810d][AndroidUiautomator2Driver@dbd7] Starting 'com.pillyze.health.dev/com.pillyze.health.MainActivity and waiting for 'com.pillyze.health.dev/com.pillyze.health.MainActivity'
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am start -W -n com.pillyze.health.dev/com.pillyze.health.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[ae74810d][FlutterDriver@2788] Matched the syslog line '12-02 18:11:13.671 31214 31399 I flutter : The Dart VM service is listening on http://127.0.0.1:38601/4KowOseI1SQ=/'
[ae74810d][ADB] Waiting up to 20000ms for activity matching pkg: 'com.pillyze.health.dev' and activity: 'com.pillyze.health.MainActivity' to be focused
[ae74810d][ADB] Possible activities, to be checked: 'com.pillyze.health.MainActivity', 'com.pillyze.health.dev.com.pillyze.health.MainActivity'
[ae74810d][ADB] Getting focused package and activity
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys window displays'
[ae74810d][ADB] Found package: 'com.pillyze.health.dev' and fully qualified activity name : 'com.pillyze.health.MainActivity'
[ae74810d][ADB] Forwarding system: 38601 to device: 38601
[ae74810d][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF forward tcp:38601 tcp:38601'
[ae74810d][FlutterDriver@2788] Establishing a connection to the Dart Observatory
[ae74810d][FlutterDriver@2788] Connecting to Dart Observatory: ws://127.0.0.1:38601/4KowOseI1SQ=/ws
[ae74810d][FlutterDriver@2788] Listing all isolates: [{"type":"@Isolate","id":"isolates/8651624020262335","name":"main","number":"8651624020262335","isSystemIsolate":false,"isolateGroupId":"isolateGroups/7283160314477322"},{"type":"@Isolate","id":"isolates/5800015166859019","name":"main","number":"5800015166859019","isSystemIsolate":false,"isolateGroupId":"isolateGroups/6599323590018965"}]
[ae74810d][FlutterDriver@2788] "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame","ext.ui.window.reinitializeShader","ext.ui.window.impellerEnabled","ext.dart.io.httpEnableTimelineLogging","ext.dart.io.getSocketProfile","ext.dart.io.socketProfilingEnabled","ext.dart.io.clearSocketProfile","ext.dart.io.getVersion","ext.dart.io.getHttpProfile","ext.dart.io.getHttpProfileRequest","ext.dart.io.clearHttpProfile","ext.flutter.reassemble","ext.flutter.exit","ext.flutter.connectedVmServiceUri","ext.flutter.activeDevToolsServerAddress","ext.flutter.platformOverride","ext.flutter.brightnessOverride","ext.flutter.timeDilation","ext.flutter.evict","ext.flutter.profilePlatformChannels","ext.flutter.invertOversizedImages","ext.flutter.debugPaint","ext.flutter.debugPaintBaselinesEnabled","ext.flutter.repaintRainbow","ext.flutter.debugDumpLayerTree","ext.flutter.debugDisableClipLayers","ext.flutter.debugDisablePhysicalShapeLayers","ext.flutter.debugDisableOpacityLayers","ext.flutter.debugDumpRenderTree","ext.flutter.debugDumpSemanticsTreeInTraversalOrder","ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder","ext.flutter.profileRenderObjectPaints","ext.flutter.profileRenderObjectLayouts","ext.flutter.debugDumpApp","ext.flutter.debugDumpFocusTree","ext.flutter.showPerformanceOverlay","ext.flutter.didSendFirstFrameEvent","ext.flutter.didSendFirstFrameRasterizedEvent","ext.flutter.profileWidgetBuilds","ext.flutter.profileUserWidgetBuilds","ext.flutter.debugAllowBanner","ext.flutter.inspector.structuredErrors","ext.flutter.inspector.show","ext.flutter.inspector.trackRebuildDirtyWidgets","ext.flutter.inspector.widgetLocationIdMap","ext.flutter.inspector.trackRepaintWidgets","ext.flutter.inspector.disposeAllGroups","ext.flutter.inspector.disposeGroup","ext.flutter.inspector.isWidgetTreeReady","ext.flutter.inspector.disposeId","ext.flutter.inspector.setPubRootDirectories","ext.flutter.inspector.addPubRootDirectories","ext.flutter.inspector.removePubRootDirectories","ext.flutter.inspector.getPubRootDirectories","ext.flutter.inspector.setSelectionById","ext.flutter.inspector.getParentChain","ext.flutter.inspector.getProperties","ext.flutter.inspector.getChildren","ext.flutter.inspector.getChildrenSummaryTree","ext.flutter.inspector.getChildrenDetailsSubtree","ext.flutter.inspector.getRootWidget","ext.flutter.inspector.getRootWidgetSummaryTree","ext.flutter.inspector.getRootWidgetSummaryTreeWithPreviews","ext.flutter.inspector.getDetailsSubtree","ext.flutter.inspector.getSelectedWidget","ext.flutter.inspector.getSelectedSummaryWidget","ext.flutter.inspector.isWidgetCreationTracked","ext.flutter.inspector.screenshot","ext.flutter.inspector.getLayoutExplorerNode","ext.flutter.inspector.setFlexFit","ext.flutter.inspector.setFlexFactor","ext.flutter.inspector.setFlexProperties","ext.dart.io.getOpenFiles","ext.dart.io.getOpenFileById"]
[ae74810d][FlutterDriver@2788] Deleting Flutter Driver session
[ae74810d][FlutterDriver@2788] Cleanup the port forward
[ae74810d][AppiumDriver@5fa7] Event 'newSessionStarted' logged at 1733130675638 (18:11:15 GMT+0900 (대한민국 표준시))
[ae74810d][AppiumDriver@5fa7] Encountered internal error running command: Error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:38601/4KowOseI1SQ=/ws. Check the server log for more details
    at FlutterDriver.connectSocket (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:125:9)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at FlutterDriver.connectAndroidSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/android.ts:49:10)
    at FlutterDriver.startAndroidSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/android.ts:38:5)
    at FlutterDriver.createSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/session.ts:45:43)
    at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:739:35)
[ae74810d][HTTP] <-- POST /session 500 9596 ms - 742 
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}}
[AppiumDriver@5fa7] Calling AppiumDriver.createSession() with args: [null,null,{"alwaysMatch":{"platformName":"Android","appium:deviceName":"R3CWC0F7AXF","appium:app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","appium:automationName":"Flutter","appium:maxRetryCount":2,"appium:autoGrantPermissions":true},"firstMatch":[{}]}]
[AppiumDriver@5fa7] Event 'newSessionRequested' logged at 1733130675672 (18:11:15 GMT+0900 (대한민국 표준시))
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'Android'
[Appium] The 'flutter' driver was installed and matched caps.
[Appium] Will require it at /Users/andrew/node_modules/appium-flutter-driver
[Appium] Requiring driver at /Users/andrew/node_modules/appium-flutter-driver/build/lib/driver.js
[AppiumDriver@5fa7] Appium v2.12.2 creating new FlutterDriver (v2.10.0) session
[AppiumDriver@5fa7] Checking BaseDriver versions for Appium and FlutterDriver
[AppiumDriver@5fa7] Appium's BaseDriver version is 9.12.2
[AppiumDriver@5fa7] FlutterDriver's BaseDriver version is 9.12.1
[FlutterDriver@8083] 
[FlutterDriver@8083] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "Android",
    "appium:deviceName": "R3CWC0F7AXF",
    "appium:app": "/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk",
    "appium:automationName": "Flutter",
    "appium:maxRetryCount": 2,
    "appium:autoGrantPermissions": true
  },
  "firstMatch": [
    {}
  ]
}
[FlutterDriver@8083] The following provided capabilities were not recognized by this driver:
[FlutterDriver@8083]   deviceName
[FlutterDriver@8083]   autoGrantPermissions
[df65f32c][FlutterDriver@8083] Session created with session id: df65f32c-a132-4cd6-a836-fe9e7063599d
[df65f32c][FlutterDriver@8083] Starting an Android proxy session
[df65f32c][AndroidUiautomator2Driver@90db] 
[df65f32c][AndroidUiautomator2Driver@90db] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "Android",
    "appium:deviceName": "R3CWC0F7AXF",
    "appium:app": "/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk",
    "appium:automationName": "Flutter",
    "appium:maxRetryCount": 2,
    "appium:autoGrantPermissions": true
  },
  "firstMatch": [
    {}
  ]
}
[df65f32c][AndroidUiautomator2Driver@90db] The following provided capabilities were not recognized by this driver:
[df65f32c][AndroidUiautomator2Driver@90db]   maxRetryCount
[0824a877][AndroidUiautomator2Driver@90db] Session created with session id: 0824a877-2da4-412d-ba74-82582b3fa1c1
[0824a877][ADB] Using 'adb' from '/Users/andrew/Library/Android/sdk/platform-tools/adb'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[0824a877][AndroidUiautomator2Driver@90db] Retrieving device list
[0824a877][ADB] Trying to find connected Android devices
[0824a877][ADB] Getting connected devices
[0824a877][ADB] Connected devices: [{"udid":"R3CWC0F7AXF","state":"device"}]
[0824a877][AndroidUiautomator2Driver@90db] Using device: R3CWC0F7AXF
[0824a877][ADB] Using 'adb' from '/Users/andrew/Library/Android/sdk/platform-tools/adb'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[0824a877][ADB] Setting device id to R3CWC0F7AXF
[0824a877][BaseDriver] Using local app '/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[0824a877][AndroidUiautomator2Driver@90db] Checking whether app is actually present
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell getprop ro.build.version.sdk'
[0824a877][ADB] Current device property 'ro.build.version.sdk': 34
[0824a877][ADB] Getting device platform version
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell getprop ro.build.version.release'
[0824a877][ADB] Current device property 'ro.build.version.release': 14
[0824a877][ADB] Device API level: 34
[0824a877][AndroidUiautomator2Driver@90db] Relaxing hidden api policy
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[0824a877][AndroidUiautomator2Driver@90db] Parsing package and activity from app manifest
[0824a877][AndroidUiautomator2Driver@90db] Pushing settings apk to the device...
[0824a877][ADB] Getting package info for 'io.appium.settings'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package io.appium.settings'
[0824a877][ADB] Using 'aapt2' from '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2'
[0824a877][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[0824a877][ADB] Package name: 'com.pillyze.health.dev'
[0824a877][ADB] Main activity name: 'com.pillyze.health.MainActivity'
[0824a877][AndroidUiautomator2Driver@90db] Parsed package and activity are: com.pillyze.health.dev/com.pillyze.health.MainActivity
[0824a877][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[0824a877][ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('5.12.16' >= '5.12.16')
[0824a877][ADB] There is no need to install/upgrade '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys activity services io.appium.settings'
[0824a877][AndroidUiautomator2Driver@90db] io.appium.settings is already running. There is no need to reset its permissions.
[0824a877][Logcat] Starting logs capture with command: /Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF logcat -v threadtime
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell appops set io.appium.settings android:mock_location allow'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell "[ -e '/data/local/tmp/mock_apps.json' ] && echo __PASS__"'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cat /data/local/tmp/mock_apps.json'
[0824a877][AndroidUiautomator2Driver@90db] Forwarding UiAutomator2 Server port 6790 to local port 8214
[0824a877][ADB] Forwarding system: 8214 to device: 6790
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF forward tcp:8214 tcp:6790'
[0824a877][ADB] Getting package info for 'io.appium.uiautomator2.server'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package io.appium.uiautomator2.server'
[0824a877][ADB] Getting install status for io.appium.uiautomator2.server.test
[0824a877][ADB] Checking app cert for /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages'
[0824a877][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages --user 0'
[0824a877][ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('7.1.1' >= '7.1.1')
[0824a877][ADB] 'io.appium.uiautomator2.server.test' is installed
[0824a877][AndroidUiautomator2Driver@90db] Server packages status: [{"installState":"sameVersionInstalled","appPath":"/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk","appId":"io.appium.uiautomator2.server"},{"installState":"sameVersionInstalled","appPath":"/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk","appId":"io.appium.uiautomator2.server.test"}]
[0824a877][AndroidUiautomator2Driver@90db] Server packages are not going to be (re)installed
[0824a877][AndroidUiautomator2Driver@90db] Waiting up to 30000ms for services to be available
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm list instrumentation'
[0824a877][AndroidUiautomator2Driver@90db] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[0824a877][ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[0824a877][ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[0824a877][ADB] Using the previously cached signature entry for 'app-debug.apk'
[0824a877][ADB] Getting package info for 'com.pillyze.health.dev'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package com.pillyze.health.dev'
[0824a877][ADB] Reading package manifest: '/Users/andrew/Library/Android/sdk/build-tools/35.0.0/aapt2 dump badging /Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[0824a877][ADB] The version name of the installed 'com.pillyze.health.dev' is greater or equal to the application version name ('1.9.3' >= '1.9.3')
[0824a877][ADB] There is no need to install/upgrade '/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk'
[0824a877][AndroidUiautomator2Driver@90db] Performing fast reset on 'com.pillyze.health.dev'
[0824a877][ADB] Getting install status for com.pillyze.health.dev
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell cmd package list packages --user 0'
[0824a877][ADB] 'com.pillyze.health.dev' is installed
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop com.pillyze.health.dev'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm clear com.pillyze.health.dev'
[ae74810d][FlutterDriver@2788] Connection to ws://127.0.0.1:38601/4KowOseI1SQ=/ws closed
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys package com.pillyze.health.dev'
[0824a877][ADB] Retrieving requested permissions
[0824a877][ADB] Retrieved 34 permissions from requested group
[0824a877][ADB] Retrieving granted permissions
[0824a877][ADB] Retrieved 14 permissions from install,runtime groups
[0824a877][ADB] Granting permissions ["android.permission.READ_CONTACTS","android.permission.WRITE_CONTACTS","android.permission.READ_EXTERNAL_STORAGE","android.permission.READ_MEDIA_IMAGES","android.permission.READ_MEDIA_VIDEO","android.permission.CAMERA","android.permission.ACTIVITY_RECOGNITION","android.permission.ACCESS_COARSE_LOCATION","android.permission.ACCESS_FINE_LOCATION","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.health","android.permission.READ_PHONE_NUMBERS","android.permission.RECORD_AUDIO","android.permission.POST_NOTIFICATIONS","android.permission.READ_MEDIA_VISUAL_USER_SELECTED"] to 'com.pillyze.health.dev'
[0824a877][ADB] Got the following command chunks to execute: [["pm","grant","com.pillyze.health.dev","android.permission.READ_CONTACTS",";","pm","grant","com.pillyze.health.dev","android.permission.WRITE_CONTACTS",";","pm","grant","com.pillyze.health.dev","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_IMAGES",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_VIDEO",";","pm","grant","com.pillyze.health.dev","android.permission.CAMERA",";","pm","grant","com.pillyze.health.dev","android.permission.ACTIVITY_RECOGNITION",";","pm","grant","com.pillyze.health.dev","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","com.pillyze.health.dev","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.health",";"],["pm","grant","com.pillyze.health.dev","android.permission.health",";","pm","grant","com.pillyze.health.dev","android.permission.READ_PHONE_NUMBERS",";","pm","grant","com.pillyze.health.dev","android.permission.RECORD_AUDIO",";","pm","grant","com.pillyze.health.dev","android.permission.POST_NOTIFICATIONS",";","pm","grant","com.pillyze.health.dev","android.permission.READ_MEDIA_VISUAL_USER_SELECTED",";"]]
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm grant com.pillyze.health.dev android.permission.READ_CONTACTS ; pm grant com.pillyze.health.dev android.permission.WRITE_CONTACTS ; pm grant com.pillyze.health.dev android.permission.READ_EXTERNAL_STORAGE ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_IMAGES ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_VIDEO ; pm grant com.pillyze.health.dev android.permission.CAMERA ; pm grant com.pillyze.health.dev android.permission.ACTIVITY_RECOGNITION ; pm grant com.pillyze.health.dev android.permission.ACCESS_COARSE_LOCATION ; pm grant com.pillyze.health.dev android.permission.ACCESS_FINE_LOCATION ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.health ;'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell pm grant com.pillyze.health.dev android.permission.health ; pm grant com.pillyze.health.dev android.permission.READ_PHONE_NUMBERS ; pm grant com.pillyze.health.dev android.permission.RECORD_AUDIO ; pm grant com.pillyze.health.dev android.permission.POST_NOTIFICATIONS ; pm grant com.pillyze.health.dev android.permission.READ_MEDIA_VISUAL_USER_SELECTED ;'
[0824a877][AndroidUiautomator2Driver@90db] Performed fast reset on the installed 'com.pillyze.health.dev' application (stop and clear)
[0824a877][AndroidUiautomator2Driver@90db] Performing shallow cleanup of automation leftovers
[0824a877][AndroidUiautomator2Driver@90db] The following obsolete sessions are still running: ["29dcc386-e857-400b-919c-6443b5936803"]
[0824a877][AndroidUiautomator2Driver@90db] Cleaning up 1 obsolete session
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:04:16.870 21147 21295 I flutter : The Dart VM service is listening on http://127.0.0.1:38779/DFZQmwjz6kM=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:04:25.997 22283 22425 I flutter : The Dart VM service is listening on http://127.0.0.1:34923/AgNBfjx1wdQ=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:04:35.547 22913 23052 I flutter : The Dart VM service is listening on http://127.0.0.1:36943/sN80MHFPgYo=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:04:45.734 23552 23690 I flutter : The Dart VM service is listening on http://127.0.0.1:39293/4jSz8G6OR-U=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:06:09.474 24669 24823 I flutter : The Dart VM service is listening on http://127.0.0.1:43857/01PJAPaIYqI=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:06:18.244 25325 25460 I flutter : The Dart VM service is listening on http://127.0.0.1:39641/605O50dHCyo=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:06:27.489 25967 26113 I flutter : The Dart VM service is listening on http://127.0.0.1:34737/T7Q2YZeiUi0=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:06:37.390 26574 26783 I flutter : The Dart VM service is listening on http://127.0.0.1:44951/vOvinSvdqNM=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:07:16.355 27537 27671 I flutter : The Dart VM service is listening on http://127.0.0.1:40971/QM0m4TIdd3M=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:07:25.382 28195 28332 I flutter : The Dart VM service is listening on http://127.0.0.1:39267/5LfwNqPHdVM=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:07:34.678 28822 28967 I flutter : The Dart VM service is listening on http://127.0.0.1:34077/IlVgerFaNNs=/'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:07:44.935 29469 29610 I flutter : The Dart VM service is listening on http://127.0.0.1:39099/NP_ajzzQxis=/'
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] 
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] Time: 8.02
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] 
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] OK (1 test)
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] 
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] 
[ae74810d][AndroidUiautomator2Driver@dbd7] [Instrumentation] The process has exited with code 0, signal null
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:11:13.671 31214 31399 I flutter : The Dart VM service is listening on http://127.0.0.1:38601/4KowOseI1SQ=/'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop io.appium.uiautomator2.server'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am force-stop io.appium.uiautomator2.server.test'
[0824a877][AndroidUiautomator2Driver@90db] Starting UIAutomator2 server 7.1.1
[0824a877][AndroidUiautomator2Driver@90db] Using UIAutomator2 server from '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.1.1.apk' and test from '/Users/andrew/node_modules/appium-flutter-driver/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[0824a877][AndroidUiautomator2Driver@90db] Waiting up to 30000ms for UiAutomator2 to be online...
[0824a877][ADB] Creating ADB subprocess with args: ["-P","5037","-s","R3CWC0F7AXF","shell","am","instrument","-w","-e","disableAnalytics","true","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[0824a877][AndroidUiautomator2Driver@90db] Matched '/status' to command name 'getStatus'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /status] to [GET http://127.0.0.1:8214/status] with no body
[0824a877][AndroidUiautomator2Driver@90db] socket hang up
[0824a877][AndroidUiautomator2Driver@90db] [Instrumentation] 
[0824a877][AndroidUiautomator2Driver@90db] Matched '/status' to command name 'getStatus'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /status] to [GET http://127.0.0.1:8214/status] with no body
[0824a877][AndroidUiautomator2Driver@90db] socket hang up
[0824a877][AndroidUiautomator2Driver@90db] Matched '/status' to command name 'getStatus'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /status] to [GET http://127.0.0.1:8214/status] with no body
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[0824a877][AndroidUiautomator2Driver@90db] The initialization of the instrumentation process took 2071ms
[0824a877][AndroidUiautomator2Driver@90db] Matched '/session' to command name 'createSession'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [POST /session] to [POST http://127.0.0.1:8214/session] with body: {"capabilities":{"firstMatch":[{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true},"deviceUDID":"R3CWC0F7AXF","appPackage":"com.pillyze.health.dev"}],"alwaysMatch":{}}}
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24","value":{"capabilities":{"firstMatch":[{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true,"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"R3CWC0F7AXF","app":"/Users/andrew/Documents/GitHub/retinol-app/build/app/outputs/flutter-apk/app-debug.apk","automationName":"Flutter","maxRetryCount":2,"autoGrantPermissions":true},"deviceUDID":"R3CWC0F7AXF","appPackage":"com.pillyze.health.dev"}],"alwaysMatch":{}},"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24"}}
[0824a877][AndroidUiautomator2Driver@90db] Determined the downstream protocol as 'W3C'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8214/session/62726562-6e61-4c20-905f-92f3c67a9b24/appium/device/pixel_ratio] with no body
[0824a877][AndroidUiautomator2Driver@90db] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8214/session/62726562-6e61-4c20-905f-92f3c67a9b24/appium/device/system_bars] with no body
[0824a877][AndroidUiautomator2Driver@90db] Matched '/window/current/size' to command name 'getWindowSize'
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8214/session/62726562-6e61-4c20-905f-92f3c67a9b24/window/current/size] with no body
[0824a877][AndroidUiautomator2Driver@90db] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8214/session/62726562-6e61-4c20-905f-92f3c67a9b24/appium/device/info] with no body
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys window'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys power'
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24","value":4}
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24","value":{"statusBar":101}}
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24","value":{"height":3120,"width":1440}}
[0824a877][AndroidUiautomator2Driver@90db] Got response with status 200: {"sessionId":"62726562-6e61-4c20-905f-92f3c67a9b24","value":{"androidId":"8057c30c78d4f19a","apiVersion":"34","bluetooth":{"state":"ON"},"brand":"samsung","carrierName":"KT","displayDensity":640,"locale":"ko_KR","manufacturer":"samsung","model":"SM-S928N","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":22246,"linkUpstreamBandwidthKbps":7543,"networkCapabilities":"NET_CAPABILITY_MMS,NET_CAPABILITY_IMS,NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-2147483648,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"IMS","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":13,"subtypeName":"LTE","type":0,"typeName":"MOBILE"},{"capabilities":{"SSID":null,"linkDownBandwidthKbps":22246,"linkUpstreamBandwidthKbps":7...
[0824a877][AndroidUiautomator2Driver@90db] Screen already unlocked, doing nothing
[0824a877][AndroidUiautomator2Driver@90db] Starting 'com.pillyze.health.dev/com.pillyze.health.MainActivity and waiting for 'com.pillyze.health.dev/com.pillyze.health.MainActivity'
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell am start -W -n com.pillyze.health.dev/com.pillyze.health.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[0824a877][FlutterDriver@8083] Matched the syslog line '12-02 18:11:22.503 31900 32045 I flutter : The Dart VM service is listening on http://127.0.0.1:45689/IFM-jTgQuJg=/'
[0824a877][ADB] Waiting up to 20000ms for activity matching pkg: 'com.pillyze.health.dev' and activity: 'com.pillyze.health.MainActivity' to be focused
[0824a877][ADB] Possible activities, to be checked: 'com.pillyze.health.MainActivity', 'com.pillyze.health.dev.com.pillyze.health.MainActivity'
[0824a877][ADB] Getting focused package and activity
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF shell dumpsys window displays'
[0824a877][ADB] Found package: 'com.pillyze.health.dev' and fully qualified activity name : 'com.pillyze.health.MainActivity'
[0824a877][ADB] Forwarding system: 45689 to device: 45689
[0824a877][ADB] Running '/Users/andrew/Library/Android/sdk/platform-tools/adb -P 5037 -s R3CWC0F7AXF forward tcp:45689 tcp:45689'
[0824a877][FlutterDriver@8083] Establishing a connection to the Dart Observatory
[0824a877][FlutterDriver@8083] Connecting to Dart Observatory: ws://127.0.0.1:45689/IFM-jTgQuJg=/ws
[0824a877][FlutterDriver@8083] Listing all isolates: [{"type":"@Isolate","id":"isolates/2016684147009711","name":"main","number":"2016684147009711","isSystemIsolate":false,"isolateGroupId":"isolateGroups/5675311216129864"},{"type":"@Isolate","id":"isolates/1280268365636299","name":"main","number":"1280268365636299","isSystemIsolate":false,"isolateGroupId":"isolateGroups/873242884569521"}]
[0824a877][FlutterDriver@8083] "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame","ext.ui.window.reinitializeShader","ext.ui.window.impellerEnabled","ext.dart.io.httpEnableTimelineLogging","ext.dart.io.getSocketProfile","ext.dart.io.socketProfilingEnabled","ext.dart.io.clearSocketProfile","ext.dart.io.getVersion","ext.dart.io.getHttpProfile","ext.dart.io.getHttpProfileRequest","ext.dart.io.clearHttpProfile","ext.flutter.reassemble","ext.flutter.exit","ext.flutter.connectedVmServiceUri","ext.flutter.activeDevToolsServerAddress","ext.flutter.platformOverride","ext.flutter.brightnessOverride","ext.flutter.timeDilation","ext.flutter.evict","ext.flutter.profilePlatformChannels","ext.flutter.invertOversizedImages","ext.flutter.debugPaint","ext.flutter.debugPaintBaselinesEnabled","ext.flutter.repaintRainbow","ext.flutter.debugDumpLayerTree","ext.flutter.debugDisableClipLayers","ext.flutter.debugDisablePhysicalShapeLayers","ext.flutter.debugDisableOpacityLayers","ext.flutter.debugDumpRenderTree","ext.flutter.debugDumpSemanticsTreeInTraversalOrder","ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder","ext.flutter.profileRenderObjectPaints","ext.flutter.profileRenderObjectLayouts","ext.flutter.debugDumpApp","ext.flutter.debugDumpFocusTree","ext.flutter.showPerformanceOverlay","ext.flutter.didSendFirstFrameEvent","ext.flutter.didSendFirstFrameRasterizedEvent","ext.flutter.profileWidgetBuilds","ext.flutter.profileUserWidgetBuilds","ext.flutter.debugAllowBanner","ext.flutter.inspector.structuredErrors","ext.flutter.inspector.show","ext.flutter.inspector.trackRebuildDirtyWidgets","ext.flutter.inspector.widgetLocationIdMap","ext.flutter.inspector.trackRepaintWidgets","ext.flutter.inspector.disposeAllGroups","ext.flutter.inspector.disposeGroup","ext.flutter.inspector.isWidgetTreeReady","ext.flutter.inspector.disposeId","ext.flutter.inspector.setPubRootDirectories","ext.flutter.inspector.addPubRootDirectories","ext.flutter.inspector.removePubRootDirectories","ext.flutter.inspector.getPubRootDirectories","ext.flutter.inspector.setSelectionById","ext.flutter.inspector.getParentChain","ext.flutter.inspector.getProperties","ext.flutter.inspector.getChildren","ext.flutter.inspector.getChildrenSummaryTree","ext.flutter.inspector.getChildrenDetailsSubtree","ext.flutter.inspector.getRootWidget","ext.flutter.inspector.getRootWidgetSummaryTree","ext.flutter.inspector.getRootWidgetSummaryTreeWithPreviews","ext.flutter.inspector.getDetailsSubtree","ext.flutter.inspector.getSelectedWidget","ext.flutter.inspector.getSelectedSummaryWidget","ext.flutter.inspector.isWidgetCreationTracked","ext.flutter.inspector.screenshot","ext.flutter.inspector.getLayoutExplorerNode","ext.flutter.inspector.setFlexFit","ext.flutter.inspector.setFlexFactor","ext.flutter.inspector.setFlexProperties","ext.dart.io.getOpenFiles","ext.dart.io.getOpenFileById"]
[0824a877][FlutterDriver@8083] Deleting Flutter Driver session
[0824a877][FlutterDriver@8083] Cleanup the port forward
[0824a877][AppiumDriver@5fa7] Event 'newSessionStarted' logged at 1733130684361 (18:11:24 GMT+0900 (대한민국 표준시))
[0824a877][AppiumDriver@5fa7] Encountered internal error running command: Error: Cannot connect to the Dart Observatory URL ws://127.0.0.1:45689/IFM-jTgQuJg=/ws. Check the server log for more details
    at FlutterDriver.connectSocket (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:125:9)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at FlutterDriver.connectAndroidSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/android.ts:49:10)
    at FlutterDriver.startAndroidSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/android.ts:38:5)
    at FlutterDriver.createSession (/Users/andrew/node_modules/appium-flutter-driver/lib/sessions/session.ts:45:43)
    at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:739:35)
[0824a877][HTTP] <-- POST /session 500 8692 ms - 742 

@KazuCocoa
Copy link
Member

It looks like the app didn't include ext.flutter.driver, which is usually installed with flutter_driver in my knowledge...

[ae74810d][FlutterDriver@2788] Establishing a connection to the Dart Observatory
[ae74810d][FlutterDriver@2788] Connecting to Dart Observatory: ws://127.0.0.1:38601/4KowOseI1SQ=/ws
[ae74810d][FlutterDriver@2788] Listing all isolates: [{"type":"@Isolate","id":"isolates/8651624020262335","name":"main","number":"8651624020262335","isSystemIsolate":false,"isolateGroupId":"isolateGroups/7283160314477322"},{"type":"@Isolate","id":"isolates/5800015166859019","name":"main","number":"5800015166859019","isSystemIsolate":false,"isolateGroupId":"isolateGroups/6599323590018965"}]
[ae74810d][FlutterDriver@2788] "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame","ext.ui.window.reinitializeShader","ext.ui.window.impellerEnabled","ext.dart.io.httpEnableTimelineLogging","ext.dart.io.getSocketProfile","ext.dart.io.socketProfilingEnabled","ext.dart.io.clearSocketProfile","ext.dart.io.getVersion","ext.dart.io.getHttpProfile","ext.dart.io.getHttpProfileRequest","ext.dart.io.clearHttpProfile","ext.flutter.reassemble","ext.flutter.exit","ext.flutter.connectedVmServiceUri","ext.flutter.activeDevToolsServerAddress","ext.flutter.platformOverride","ext.flutter.brightnessOverride","ext.flutter.timeDilation","ext.flutter.evict","ext.flutter.profilePlatformChannels","ext.flutter.invertOversizedImages","ext.flutter.debugPaint","ext.flutter.debugPaintBaselinesEnabled","ext.flutter.repaintRainbow","ext.flutter.debugDumpLayerTree","ext.flutter.debugDisableClipLayers","ext.flutter.debugDisablePhysicalShapeLayers","ext.flutter.debugDisableOpacityLayers","ext.flutter.debugDumpRenderTree","ext.flutter.debugDumpSemanticsTreeInTraversalOrder","ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder","ext.flutter.profileRenderObjectPaints","ext.flutter.profileRenderObjectLayouts","ext.flutter.debugDumpApp","ext.flutter.debugDumpFocusTree","ext.flutter.showPerformanceOverlay","ext.flutter.didSendFirstFrameEvent","ext.flutter.didSendFirstFrameRasterizedEvent","ext.flutter.profileWidgetBuilds","ext.flutter.profileUserWidgetBuilds","ext.flutter.debugAllowBanner","ext.flutter.inspector.structuredErrors","ext.flutter.inspector.show","ext.flutter.inspector.trackRebuildDirtyWidgets","ext.flutter.inspector.widgetLocationIdMap","ext.flutter.inspector.trackRepaintWidgets","ext.flutter.inspector.disposeAllGroups","ext.flutter.inspector.disposeGroup","ext.flutter.inspector.isWidgetTreeReady","ext.flutter.inspector.disposeId","ext.flutter.inspector.setPubRootDirectories","ext.flutter.inspector.addPubRootDirectories","ext.flutter.inspector.removePubRootDirectories","ext.flutter.inspector.getPubRootDirectories","ext.flutter.inspector.setSelectionById","ext.flutter.inspector.getParentChain","ext.flutter.inspector.getProperties","ext.flutter.inspector.getChildren","ext.flutter.inspector.getChildrenSummaryTree","ext.flutter.inspector.getChildrenDetailsSubtree","ext.flutter.inspector.getRootWidget","ext.flutter.inspector.getRootWidgetSummaryTree","ext.flutter.inspector.getRootWidgetSummaryTreeWithPreviews","ext.flutter.inspector.getDetailsSubtree","ext.flutter.inspector.getSelectedWidget","ext.flutter.inspector.getSelectedSummaryWidget","ext.flutter.inspector.isWidgetCreationTracked","ext.flutter.inspector.screenshot","ext.flutter.inspector.getLayoutExplorerNode","ext.flutter.inspector.setFlexFit","ext.flutter.inspector.setFlexFactor","ext.flutter.inspector.setFlexProperties","ext.dart.io.getOpenFiles","ext.dart.io.getOpenFileById"]
[ae74810d][FlutterDriver@2788] Deleting Flutter Driver session
[ae74810d][FlutterDriver@2788] Cleanup the port forward

@KazuCocoa KazuCocoa added the question Further information is requested label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants