简体   繁体   English

错误:react-native-vector-icons:compileDebugJavaWithJavac'。 反应母语

[英]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的新手,我已经在系统中克隆了一个repo和setup项目,现在我想在android中运行。

react-native run-android react-native运行Android

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

  • What went wrong: Execution failed for task ':react-native-vector-icons:compileDebugJavaWithJavac'. 出了什么问题:任务':react-native-vector-icons:compileDebugJavaWithJavac'的执行失败。

    Could not find tools.jar. 找不到tools.jar。 Please check that C:\\Program Files (x86)\\Java\\jre1.8.0_111 contains a valid JDK installation. 请检查C:\\ Program Files(x86)\\ Java \\ jre1.8.0_111是否包含有效的JDK安装。 在此处输入图片说明

I've also tried installing vector icons using below link enter link description here 我也尝试使用下面的链接安装矢量图标,在此处输入链接描述

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. 您应该将JDK路径org.gradle.java.home=C:\\ProgramFiles\\Java\\jdk1.8.0_161gradle.properties文件中,然后重建项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM