DEV Community

Larry
Larry

Posted on

7 1

Could not find tools.jar

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

Top comments (5)

Collapse
 
deep7777 profile image
Deepak Yadav

Thanks

Collapse
 
rlesniak profile image
Rafal Lesniak

Thanks!

Collapse
 
lautaroml profile image
Lautaro

Thanks!!!

Collapse
 
akpughe profile image
David Akpughe

Thanks!!

Collapse
 
waldemirflj profile image
Waldemir Francisco

Nice!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay