Fail to connect to Mobile device

Hi, Form.

While trying to connect the mobile device following the given guidance (Mobile Automation), I faced with the following error message at the step: "sdkmanager “platform” “platform;android-28”

In my understanding, the message says the java version needs to be updated to be aligned with the one used to compile the Android SDK. But, I see the java version on my device is already up-to-date.

java version “1.8.0_401”
Java™ SE Runtime Environment (build 1.8.0_401-b10)
Java HotSpot™ Client VM (build 25.401-b10, mixed mode, sharing)

Did I miss something?

Regards

Try using Android Studio to configure a device. Should be easier than fiddling around in the command line.