Error getting device platform version

Appium detects the device however fails at gettting the platform version. could you please help me to over come from this issue.

"C:\Program Files\nodejs\node_modules\.bin\appium" --address --port 4723 --platform-name Android --platform-version 23 --automation-name Appium --log-no-color   
[Appium] Welcome to Appium v1.5.3
[Appium] Non-default server args:
[Appium]   address: ''
[Appium]   logNoColors: true
[Appium]   platformName: 'Android'
[Appium]   platformVersion: '23'
[Appium]   automationName: 'Appium'
[Appium] Deprecated server args:
[Appium]   --platform-name => --default-capabilities '{"platformName":"Android"}'
[Appium]   --platform-version => --default-capabilities '{"platformVersion":"23"}'
[Appium]   --automation-name => --default-capabilities '{"automationName":"Appium"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium]   platformName: 'Android'
[Appium]   platformVersion: '23'
[Appium]   automationName: 'Appium'
[Appium] Appium REST http interface listener started on
[ADB] Checking whether adb is present
[ADB] Using adb.exe from F:\Android\sdk\platform-tools\adb.exe
[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] Looking for a device with Android 5.0
[debug] [ADB] Setting device id to emulator-5754
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running F:\Android\sdk\platform-tools\adb.exe with args: ["-P",5037,"-s","emulator-5754","shell","getprop",""]
[debug] [ADB] Running F:\Android\sdk\platform-tools\adb.exe with args: ["-P",5037,"-s","emulator-5754","shell","getprop",""]
[ADB] Error: Error getting device platform version. Original error: Error executing adbExec. Original error: Command 'F:\\Android\\sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5754 shell getprop' exited with code 1{"stdout":"","stderr":"error: device 'emulator-5754' not found\r\n","code":1}

Here is the emulator log:
$ F:\Android\sdk/tools/android.bat list target
[android] Using Android SDK: F:\Android\sdk
$ F:\Android\sdk/platform-tools/adb.exe start-server
* daemon not running. starting it now on port 5818 *
* daemon started successfully *
$ F:\Android\sdk/platform-tools/adb.exe start-server
[android] Starting Android emulator
$ F:\Android\sdk/tools/emulator.exe -engine classic -ports 5754,5755 -report-console tcp:5866,max=60 -avd Android_5_0_API_21 -no-snapshot-load -no-snapshot-save
emulator: WARNING: VM heap size set below hardware specified minimum of 192MB
emulator: WARNING: Setting VM heap size to 384MB
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
emulator: device fd:1172
HAXM is working and emulator runs in fast virt mode
[android] Emulator reported that the console is available on port 5,754
[android] Waiting for emulator to finish booting…
$ F:\Android\sdk/platform-tools/adb.exe -s emulator-5754 wait-for-device shell getprop init.svc.bootanim
Your emulator is out of date, please update by launching Android Studio:
- Start Android Studio
- Select menu “Tools > Android > SDK Manager”
- Click “SDK Tools” tab
- Check “Android SDK Tools” checkbox
- Click “OK”

got any solution?? facing the same issue can you please help

considering above code, platformVersion needs to be android OS version like “6.0.1”, not the API version (23)

I am using 5.1 and creating a emulator in jenkins with properties below,

version 5.1
Screen density 240
Screen resolution WVGA
Device locale en_US
Target ABI armeabi-v7a

Please help!!

I am also facing the same issue.

Please see below log,

[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1521011470976 (12:41:10 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session
[Appium] Capabilities:
[Appium] app: c:/apk/12.3.13_sifranddapp-1.apk
[Appium] autoWebviewTimeout: 30000
[Appium] appWaitActivity: .Startup
[Appium] deviceName: Nexus 7
[Appium] fullReset: true
[Appium] newCommandTimeout: 300
[Appium] platformVersion: 6.0.1
[Appium] automationName: uiautomator2
[Appium] browserName:
[Appium] autoGrantPermissions: true
[Appium] platformName: Android
[Appium] udid: 0a62c3bf
[Appium] unexpectedAlertBehaviour: accept

Device: Nexus 7
Android: 6.0.1
Appium: 1.7.2