【发布时间】:2020-09-13 19:48:16
【问题描述】:
我正在尝试在 Windows 10 上为 Android 创建一个 React Native 应用程序,但每次我使用 react-native run-android 时都会遇到相同的错误:ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
I've already set up this variable via the Control Panel
And I've set up the Path variable to both the JDK and JRE
我已经卸载并重新安装了 JDK 和 Android Studio,我尝试在 Path 和 JAVA_HOME 变量中删除和添加“\bin”,并且我一直在浏览类似的问题(包括 this one 和 this one ) 无济于事。
我能做什么?
【问题讨论】:
标签: java android windows react-native environment-variables