Before starting the appium server, click on the Edit Configurations and setup the Android_Home and JAVA_HOME