Unable to launch apk using appium. error: Unhandled error: Error: connect ECONNREFUSED

Can you help me in solving Android Path error in Eclipse:The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb.
I have set ANDROID_HOME and required path details correctly. My adb commands from terminal are working fine, but eclipse shows above error when I launch it programatically.
I have referred following suggestions but no success:

  1. https://github.com/saikrishna321/AppiumTestDistribution/issues/7
  2. Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path
    Please help me in this.