FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':gradle:compileGroovy'.
Failed to run Gradle Worker Daemon
A problem occurred starting process 'Gradle Worker Daemon 20'
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 353ms
Running Gradle task 'assembleDebug'... 821ms
Error: Gradle task assembleDebug failed with exit code 1
查看本地java sdk
/usr/libexec/java_home -V
获取到本地java jdk 目录后 在项目的addroid目录下的gradle.properties指定本地的jdk
org.gradle.java.home=/Users/xxx/Library/Java/JavaVirtualMachines/ms-11.0.28/Contents/Home