Unable to connect Android device to Appium server

Environment using :
ubuntu 20.04
Android device os 12 v
Appium-server-logs.txt (94.9 KB)

Can any please help me to sort out this issue

Thank you in advance

I see 2 errors:

[debug] e[35m[ADB]e[39m Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server'
[debug] e[35m[ADB]e[39m 'io.appium.uiautomator2.server' is not installed 

and:

Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder

So make sure uiautomator2 is installed and in $PATH, and fix the $JAVA_HOME to be a valid. You may have additional errors that we can’t see yet, if you upload another log, please do so as a git gist

1 Like