Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : react-native-vector-icons:compileDebugJavaWithJavac'. React-Native

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

like image 688
Neha Chauhan Avatar asked Jul 03 '26 14:07

Neha Chauhan


1 Answers

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.

like image 198
mohammadReza Abiri Avatar answered Jul 05 '26 03:07

mohammadReza Abiri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!