1) Update the latest version of JDK, in my case jdk1.8.0_162
2) In Android Studio, select "File-> Project Structure → SDK Location → JDK Location, write the directory C: \ Program Files \ Java \ jdk1.8.0_162
3) Restart Android Studio
Solution
source share