Gradle build:无法创建Tooling API的实例

时间:2015-08-24 09:05:10

标签: android android-studio intellij-idea gradle android-gradle

错误:无法使用指定的Gradle分发“https://services.gradle.org/distributions/gradle-2.6-all.zip”创建Tooling API实现的实例。

我根据SO的其他答案尝试了以下内容:

  1. 重新安装gradle(使用brew)
  2. 删除了Android工作室和相关的所有内容(SDK除外)。包括缓存,日志。
  3. 手动下载gradle-2.6 zip并将其放入.gradle / wrapper / dists
  4. 我甚至尝试从plugins目录中删除一堆文件。没用。
  5. 从我的活动日志中:

    14:14:19 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:20 Gradle sync started
    14:14:21 Gradle sync failed: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-2.6-all.zip'.
         Consult IDE log for more details (Help | Show Log)
    14:14:22 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:22 Unregistered VCS root detected
         The directory /Users/anuj/projects/makerville/android is under Git, but is not registered in the Settings.
         Add root  Configure  Ignore
    14:14:27 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:32 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    

    其他细节:

    Android Studio 1.3.1 JRE 1.6.0

    build.gradle看起来像

    14:14:19 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:20 Gradle sync started
    14:14:21 Gradle sync failed: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-2.6-all.zip'.
         Consult IDE log for more details (Help | Show Log)
    14:14:22 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:22 Unregistered VCS root detected
         The directory /Users/anuj/projects/makerville/android is under Git, but is not registered in the Settings.
         Add root  Configure  Ignore
    14:14:27 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:32 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    14:14:37 Throwable: Null child action in group Toolbar Run Actions () of class class com.intellij.openapi.actionSystem.DefaultActionGroup, id=GradleKiller.KillGradle
    

0 个答案:

没有答案