If you have below type of error in android studio and cannot run the app because of the jdk path is invalid.
"Gradle Sync Failed : CreateProcess error=2, The System Cannot Find The File Specified."
Then your inbuilt jdk path contains an error so that you have to specify the external jdk path.
For that you have to install the jdk 8 ar above version, because if your jdk version is 7 or below then it cannot supported in android studio.
This video gives you perfect suggestion to solve this error.
Nesta página do site você pode assistir ao vídeo on-line Android Studio Error CreateProcess error=2, The System Cannot Find The File Specified. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Suvidha J Malaviya 22 Janeiro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 27,337 vezes e gostou 86 espectadores. Boa visualização!