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.
En esta página del sitio puede ver el video en línea Android Studio Error CreateProcess error=2, The System Cannot Find The File Specified. de Duración hora minuto segunda en buena calidad , que subió el usuario Suvidha J Malaviya 22 enero 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 27,337 veces y le gustó 86 a los espectadores. Disfruta viendo!