System: Windows 10
NodeJS: v13.8.0
React Native: 0.62.2
React: "16.11.0"
It also happens with typescript template
After I run npm run android
, I have these logs:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier"flag.Jetifier found 967 file(s) to forward-jetify. Using 4 workers...info Starting JS server...info Launching emulator...info Successfully launched emulator.info Installing the app...> Task :app:compileDebugJavaWithJavac FAILEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings14 actionable tasks: 6 executed, 8 up-to-dateerror Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with -- verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081FAILURE: Build failed with an exception.ERROR: Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_251 contains a valid JDK installation