简体   繁体   中英

Project refresh failed Error:exception during working with external system: - Android Studio 2.1 Preview

I updated the Android Studio to Preview 2.1 and the gradle is updated as well

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

I got this message :

测试

When i click on the Try Again shown upside, i get this message

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

Anybody faced and solved this problem ?

change classpath to

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
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM