I couldn't change the SDK path because it was set correctly. AndroidSDK was loading the wrong path value because it was loading the value from ~/.android/cache/ directory.
~/.android/cache/
The job works fine after deleting cache files.