Alright I'm running windows 10 and I'm trying to install Android Studio 2.1 but it gave me a can't find valid jdk error so I downloaded jdk 1.8.0 and rebooted the installer but the problem still persists so I spent a few hours trying to figure out how to fix this. I made environment variables JAVA_HOME
and set its path to C:\Program Files\Java\jdk1.8.0_101
for both user ans system variables then rebooted the installer again and it still can't find a valid jdk.
How can I fix this?Here's a picture of the error