Problem:
Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
Solution:
- Go to your project, open android folder > gradle.properties file > add below line
org.gradle.java.home=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home
// path to JDK - run your project again
react-native run-android
Thanks
Top comments (5)
Thanks
Thanks!
Thanks!!!
Thanks!!
Nice!