'Only for Appium Inspector ,Failed to create session , Android SDK folder does not exist in Windows 10 but path is correct

In 64-bit windows 10, I downloaded and installed Appium-Inspector-windows-2022.2.1. Also in system variables I set the ANDROID_HOME and path correctly.

ANDROID_HOME= C:\Users\Sameera\AppData\Local\Android\Sdk
path=C:\Users\Sameera\AppData\Local\Android\Sdk\tools;C:\Users\Sameera\AppData\Local\Android\Sdk\build-tools;C:\Users\Sameera\AppData\Local\Android\Sdk\platform-tools

enter image description here

After that I started Emulator via command line using adb commands also and Appium server(Appium-Server-GUI-windows-1.22.2) in GUI mode.

[enter image description here][1

However, when I tried to start Appium inspector, it throws,

Failed to create session. An unknown server-side error occurred while processing the command. Original error: The Android SDK root folder ' C:\Users\Sameera\AppData\Local\Android\Sdk' does not exist on the local file system. Read https://developer.android.com/studio/command-line/variables for more details

However, it exists.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source