gpt4 book ai didi

android - 在 Android Studio 中与 Gradle 同步失败

转载 作者:行者123 更新时间:2023-11-29 01:35:04 24 4
gpt4 key购买 nike

我正在编写我的第一个 Android 应用程序。我成功安装了 Android Studio。我创建了一个 nw 项目,SDK 4.2,空 Activity 。我试图在开始编辑应用程序之前制作/构建/运行该应用程序,但出现此错误:

Error:Cause: org.slf4j.helpers.NOPLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext 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)
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

它出现在我的 win7 PC x64 上,带有 1.8 jdk。我在 VM 上试过 winXP,它在第一次启动时就工作了。我能做什么?

最佳答案

我也遇到了同样的问题。

I followed this google group link

然后我知道我有一些其他版本的 slf4j.jar 文件。我刚刚将它从/jdk/jre/ext/文件夹中删除,它对我有用。

我认为这会很有用

关于android - 在 Android Studio 中与 Gradle 同步失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28813249/

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