I updated Android Studio 2.0 Preview from 4 to 5 this morning. If I continue to build with:
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
}
this will still compile successfully. But if I move up to -alpha5 I get this error:
Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: C:....\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified)
I posted a bug here. They came out with a fix very quickly. Now just use
alpha6
:From now on, I think Google expects us to not use this:
But rather add the services you need specifically. Find a list of them here
Also, you need to apply play service plugin in last line of your application's gradle: