error Failed to install the app.Make sure you have the Android development enviromrnt set up : https://reactnative.dev/docs/enviroment-setup
Execution failed for task ‘: app:compileDebugJavaWithJavac’.
> Could not find tools.jar.Please check that D:\java contains a valid JDK installation
BUILD FAILED at https://help.gradle.org
【解决】
JAVA_HOME 值为JDK路径
环境变量 path add ;%JAVA_HOME%\bin;