android studio中的gradle默认使用的是其本身安装目录下jre。
依据如下:如下日志是首次使用时打印的
16:00 Project TestAS is using the following JDK location when running Gradle:
E:/Program Files/Android/Android Studio/jre
Using different JDK locations on different processes might cause Gradle to
spawn multiple daemons, for example, by executing Gradle tasks from a terminal
while using Android Studio.
More info...
Select a JDK
Do not show this warning again