Appium server not working after reinstalling it

Hi

I have uninstalled appium server 1.7 and install it again

now my proper running script is not working and showing this error

there is no change in code or capabilities but now same code is not working

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: The desiredCapabilities object was not valid for the following reason(s): deviceName can’t be blank, (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 234 milliseconds
Build info: version: ‘3.4.0’, revision: ‘unknown’, time: ‘unknown’

As your error suggests deviceName is blank in your desiredCapabilites .

Make sure you give the mandatory capabilities to Appium like below

Generic Capabilities:

  • deviceName
  • udid
  • platformName
  • platformVersion

For Native android:

  • appPackage
  • appActivity

For web android:

  • browserName

it’s working now just was a silly typo mistake.

:+1:
Appium capabilities are case sensitive