gpt4 book ai didi

安卓工作室 - 错误 :Unable to load class 'org.slf4j.LoggerFactory'

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:25:57 25 4
gpt4 key购买 nike

我是 Android 世界的新手。我打开 studio Android 2.2 并在创建新项目后收到此错误消息:

Failed to sync Gradle project '...'

Error:Unable to load class 'org.slf4j.LoggerFactory'. 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.

我该如何解决这个问题?谢谢

最佳答案

转到文件-> 设置 -> 展开构建、执行、部署 -> 选择构建工具 -> Gradle -> 在 Project Level Settings 下选择 Use default gradle wrapper。再次尝试 Gradle 构建,这对我有用。

enter image description here

关于安卓工作室 - 错误 :Unable to load class 'org.slf4j.LoggerFactory' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39663720/

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