Martin Pfeffer
Martin Pfeffer

Reputation: 12627

Error com.google.android.gms/play-services/8.4.0/ gradle:2.0.0-alpha5

After updating the SDK AndroidStudio told me to update to gradle:2.0.0-alpha5. When I build/run the app gradle fails and says:

Error:Execution failed for task ':app:compileReleaseJavaWithJavac'. java.io.FileNotFoundException: /home/pepperonas/IdeaProjects/Android/M104/app/build/intermediates/exploded-aar/com.google.android.gms/play-services/8.4.0/jars/classes.jar (No such file or directory)

Downgrading to gradle:2.0.0-alpha3 will solve it, but I want to use the newest version.

Does any body know how to fix it?

(Note: I use AndroidStudio 2.0 Preview 5)

As always, thanks in advance.

Upvotes: 4

Views: 1254

Answers (3)

Martin Pfeffer
Martin Pfeffer

Reputation: 12627

Found the solution:

Updating will do the trick.

'com.android.tools.build:gradle:2.0.0-alpha9'

UPDATE (2015-02-28)

alpha9 is available now

NOTE

Bookmark this page <- seems to be a MUST for every android-dev. :)

Upvotes: 15

user4774371
user4774371

Reputation:

As per today (9.Mar.2016) com.android.tools.build:gradle:2.0.0-beta6 is available. Update your project/gradle.build. Also update gradle distribution to 2.11-all

Anyone interested in getting latest build updates view email for com.android.tools.build:gradle can go to bintray site and subscribe for it.

Update (9.Mar.2016)

com.android.tools.build.gradle 2.1.0-alpha1 has just been released.

Upvotes: 0

user2511882
user2511882

Reputation: 9152

Unfortunately, you are the not the only one with this issue. There seems to be some bug on the alpha5 build for the Gradle build tools. There is already a ticket created on the Android Bug Tracker.

More info: https://code.google.com/p/android/issues/detail?id=198937

In the meantime alpha3 build tool is the way to go about. I am doing the same thing as of now until the issue is resolved in the next release.

Hope this helps.

Upvotes: 7

Related Questions