I recently installed jdk 1.8 u92 after Android Studio said it is needed for api24 builds. However, I\'ve run into this issue now.
I looked at some other solutions an
close android studio
go to :
C:\Users\WINDOW_USER_NAME\AndroidStudio2.1\config\options
open jdk.table.xml
replace all with your JDK version , in my case replaced all with :
C:/Program Files/Java/jdk1.8.0_101
re-open android-studio
Sync