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 ?
First of all Download And Install the JDK from the Oracle website with the same version number as the JRE if you didn't already. Then add JAVA_HOME to the environment variables of Windows. Restart your terminal or development environment to load the new JAVA_HOME value. Now, Your error must be solved.
Setting the missing "JAVA_HOME" system environment variable worked for me.
react-native run-android
worked fine after that.Setting up appropriate JDK (not JRE. JRE does not have tools.jar
) version (E.g. JDK 1.7x) path as the JAVA_HOME
would resolve this issue.
Please check your computer's environment variables and set JAVA_HOME
if it has not already been setup.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With