gpt4 book ai didi

java - 无法加载类 'com.intellij.util.Consumer'

转载 作者:行者123 更新时间:2023-12-01 17:42:29 25 4
gpt4 key购买 nike

升级到 Android Studio 3.6 后,我收到此错误:

ERROR: Unable to load class 'com.intellij.util.Consumer'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

我的build.gradle代码:

dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.google.gms:google-services:4.3.3'
}

distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

最佳答案

在Gradle中添加maven(项目:应用名称)

    maven { url "https://jitpack.io" }

然后,在gradle中使用这两个类,或者,你可以尝试一下

implementation 'com.android.tools.build:gradle:3.6.1'
implementation 'com.google.gms:google-services:4.3.3'

关于java - 无法加载类 'com.intellij.util.Consumer',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60928178/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com