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