Toda vez que eu tento rodar o código no emulador apresenta esse erro:
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-14.0.1\bin
Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
E eu não sei como resolver isso. Já desinstalei o java e instalei de novo, já reconfigurei o path, mas ainda sim, não funciona.