3

I'm new into react-native and I've cloned one repo and setup project in my system now i'm tryingto run in android.

react-native run-android

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':react-native-vector-icons:compileDebugJavaWithJavac'.

    Could not find tools.jar. Please check that C:\Program Files (x86)\Java\jre1.8.0_111 contains a valid JDK installation.enter image description here

I've also tried installing vector icons using below link enter link description here

Neha Chauhan
  • 622
  • 4
  • 12
  • 1
    Check this https://stackoverflow.com/questions/47291056/could-not-find-tools-jar-please-check-that-c-program-files-java-jre1-8-0-151-c – Kartik Shandilya May 18 '19 at 08:28
  • 1
    duplicate of https://stackoverflow.com/questions/47291056/could-not-find-tools-jar-please-check-that-c-program-files-java-jre1-8-0-151-c you need jdk not jre – DNA.h May 18 '19 at 08:28

1 Answers1

1

this may help you :

you should added JDK path org.gradle.java.home=C:\ProgramFiles\Java\jdk1.8.0_161 to gradle.properties file and rebuild your project.

mohammadReza Abiri
  • 1,759
  • 1
  • 9
  • 20