Android studio installation

I’m trying to install Android studio on window 7 but every time when installation completes it opens the SDK manager and asks me to set a proper location for sdk. I have tried changing it like it is given in the tutorial but it doesn’t change and says required packages were not detected or some error. What to do now?