2
我正在编写我的第一个Android应用程序。我已成功安装Android Studio。我已经创建了一个新项目SDK 4.2,为空作业。我试图使/建设/开始编辑它之前运行的应用程序,但我得到这个错误:Android Studio中的Gradle同步失败
Error:Cause: org.slf4j.helpers.NOPLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext Possible causes for this unexpected error include:
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
- 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)
它出现在我的win7 PC的x64,1.8 JDK。我已经尝试过使用winXP的虚拟机,它在第一次启动时就起作用了。我能做什么?
没有尝试无效缓存并重新构建有用。可以在Android Studio下使用 - >'无效缓存并重新启动' – Panther 2015-03-02 15:24:45
我试过了,但它没有工作 – 2015-03-02 15:28:55
尝试按照错误消息中所述的方式来终止所有java进程。如果没有解决发布您的build.gradle – Panther 2015-03-02 15:37:18