Please help ..,any clue with gradle sync error

Hello team ,
i am beginner with android programming, i was working fine with “Udacity project:JastJava” , i was able to run the project on my studio emulator cool …

but after restarting Android Studio , i think it makes some updates, then asked me to update gradle so i chose the option to update gradle next time, then i got this error :

, i went to SDK settings and the specific path just fine !! , message in RED says that
i have actual path of : C:\Program Files\Java\jre1.8.0_151
while wanted bath is : C:\Program Files\Android\Android Studio\jre

but i have the right path in SDK settings wish is : C:\Program Files\Android\Android Studio\jre

so help please …