【发布时间】:2017-02-02 10:22:45
【问题描述】:
我到了这一步:
reactive-native run-android ;
当我运行echo $JAVA_HOME 时,我得到了 JDK 目录的完整路径:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
我将该路径添加到./android/gradle.properties:
org.gradle.java.home=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/
我遇到了同样的错误:
..... ... :app:generateDebugSources UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:compileDebugJavaWithJavac 失败
FAILURE:构建失败并出现异常。
出了什么问题:任务 ':app:compileDebugJavaWithJavac' 执行失败。
找不到 tools.jar
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
.....
【问题讨论】:
标签: android macos react-native java-home