Andriod adb ,Android_Home issue

Hi ,
I am new to appium and facing the following issue :

Gone through so many blogs and tried so many ways but unable to reslove this.
adb is installed and shown in the cmd also but appium is unable to find the location.
please help me on this

Issue resolved after deleting and installing the andriod studio and packages.
Changed the Paths after the installation of Andriod studio.
Restarted the system and installed the appium server issue got resolved.