Reputation: 107
When running the android app in react native i'm geeting this error
Execution failed for task ':react-native-contacts:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that C:\Program Files\Java\New folder contains a valid JDK installation.
I have also checked the java version it is installted. My java version is 1.8.0_151.
Upvotes: 2
Views: 1116
Reputation: 18833
add Jdk path org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_144
to gradle.properties
file and then run this command line in your projects root
cd android && gradlew clean && cd .. && react-native run-android
Upvotes: 1