gradle.daemon react-native: 无法找到或加载 main class “Dorg.gradle.daemon=true”

gradle.daemon react-native: Could not find or load main class “Dorg.gradle.daemon=true”

当我尝试使用命令 'react-native run-android' 构建项目时,出现以下错误: 错误:无法找到或加载主class“Dorg.gradle.daemon=true”

JS server already running.  
Building and installing the app on the device (cd android && ./gradlew installDebug...
Error: Could not find or load main class “Dorg.gradle.daemon=true”
Could not install the app on the device, read the error above for details.

.bash_profile包含以下全局变量:

export ANDROID_HOME=$HOME/Library/Android/Android-SDK
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Hom 
export GRADLE_OPTS=“Dorg.gradle.daemon=true”

我有我的模拟器 运行 我有 运行 命令 "source ~/.bash_profile".

我只想启用 gradle 守护程序并执行项目

不知道是不是这个原因,但应该是:

GRADLE_OPTS="-Dorg.gradle.daemon=true" 

注意破折号 -