In my case there was problem of JDK path. I just set path of JDK for Android Studio. File -> Project Structure -> From Left Side Panel "SDK Location" -> JDK Location -> Click to select JDK Path.