解决由于JDK引起的“Multiple Gradle deamons…”警告

Android Studio有时会报“Multiple Gradle deamons…”警告:

Multiple Gradle daemons might be spawned because the Gradle JDK and JAVA_HOME locations are different. Project 'yhpx' is using the following JDK location when running Gradle: 'D:/jdk11_x64' The system environment variable JAVA_HOME is: 'D:\.jdks\openjdk-20.0.2' If you dont need to use different paths (or if JAVA_HOME is undefined), you can avoid spawning multiple daemons by setting JAVA_HOME and the JDK location to the same path.

或者会提示:

The 'abc' project JDK configuration is now set through the #GRADLE_LOCAL_JAVA_HOME macro. This simplifies the JDK configuration experience and makes it more reliable. You can change this in the Gradle JDK settings.

这是由于Gradle使用的JDK和Android Studio使用的JDK不相同引起的。

点击“Learn more”后会打开链接:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值