017 Android Studio is using the following JDK location when running Gradle:

017 Android Studio is using the following JDK location when running Gradle:

E:\Android\android-studio-ide-201.6719854-windows\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.

解决办法:
1、几乎无效
Android Studio is using the following JDK location when running Gradle:

2、下文的内容试了无效,文章下方的评论有效
Android Studio和Gradle 没同步JDK、SDK、NDK所遇到的坑

有效的评论内容:
window:在C:\Users\用户名.gradle 的路径下找到文件 gradle.properties (如果没有就穿件一个gradle.properties文件) linux:home目录下的隐藏文件、.gradle/gradle.properties 在末尾添加一句:org.gradle.java.home=你的jdk路径。(如果有则,直接修改路径)。

本人电脑路径:
C:\Users\Peter.gradle

mark

文档:
mark

本人电脑配置的JDK路径:

org.gradle.java.home=/E:/Android/android-studio-ide-201.6719854-windows-4.1rc1/android-studio/jre

mark

E:\Android\AndroidStudioProjects\iMoocAndroidArchitect\chap0104\ktolin_demo\gradle\wrapper

mark

distributionUrl=file:///e:/Android/gradle-6.7.1-all.zip

posted @ 2021-02-06 22:20  皿哥的技术人生  阅读(4723)  评论(0编辑  收藏  举报