项目刷新失败错误:使用外部系统时出现异常: - Android Studio 2.1 Preview

时间:2016-03-10 12:57:23

标签: android gradle android-gradle

我将Android Studio更新为预览2.1,同时更新了gradle

dependencies {
    classpath 'com.android.tools.build:gradle:2.1.0-alpha1'
    classpath 'com.google.gms:google-services:2.1.0-alpha1'
}

我收到了这条消息:

test

当我点击 再试一次 时,我会收到此消息

Gradle 'TestProject' Project refresh failed
  Error:exception during working with external system: 

有人面对并解决了这个问题吗?

1 个答案:

答案 0 :(得分:0)

将类路径更改为

dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0-alpha1'
        classpath 'com.google.gms:google-services:2.0.0-alpha6'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }