MacOS升级到Big Sur后,gradle assembleRelease报错:Could not find tools.jar

MacOS升级到Big Sur后,gradle assembleRelease报错:Could not find tools.jar

1.终端执行:
/usr/libexec/java_home -V | grep jdk

2.path添加要用的哪一版本的JAVA_HOME到PATh中
export JAVA_HOME=”/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home”
export PATH=$JAVA_HOME/bin:$PATH

继续阅读“MacOS升级到Big Sur后,gradle assembleRelease报错:Could not find tools.jar”