guys . i just try to install react native in my laptop. i've followed all setup instruction but i stiil get those error .
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not find tools.jar
i used genymotion with os version 5.1.0, i've setup environment variable for android_home. Any idea what i miss here ?
Just to add another data point for people pulling their hair out. I think a java update may have messed up my environment that was working fine 2 months ago. The combination of what worked for me:
Set
JAVA_HOME
to1.7
, NOT1.8
.I had 2 1.8 versions installed and neither worked.
I have deleted "\react_native_project_path\android" directory and run
then run ..
Then the error is gone
I'm gonna go on a long shot here. There is a tools.jar in java libs folder.[the java sdk that is]
Usually all these frameworks and ides have a lib folder themselves. and it is missing said tools.jar. Just copy paste it there.
Setting up appropriate JDK (not JRE. JRE does not have
tools.jar
) version (E.g. JDK 1.7x) path as theJAVA_HOME
would resolve this issue.Please check your computer's environment variables and set
JAVA_HOME
if it has not already been setup.