Fails to install Android SDK, NDK, etc properly

I am facing this problem everytime i try to run setup android. I have installed required sdk,ndk and java in the default directories. But my Unreal engine is in another drive which is not C drive. Because of this error i can’t run the setupandroid file successfully and may be this is the reason i cannot accept SDK license inside unreal engine. Please can anyone solve this issue for me?? I am bit worried and helpless right now.