DEV Community

loading...

Could not find tools.jar

larrydanny profile image Larry ・1 min read

Alt Text

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:

  1. 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
  2. run your project again react-native run-android

Thanks

Discussion (1)

pic
Editor guide
Collapse
rlesniak profile image