Screenshot of error
I am running [ Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 amd64
In windows, you may run Android Studio as Administrator
I ran the Android studio as administrator and then it worked as it is a permission issue.
Problem Solved!
The permission of my Android directory was set to write only by root so android-studio was unable to write any changes. I changed the permissions to 777 and it fixed the problem.
Thanks for Help anyways.