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

After updating the AndroidStudio SDK, I was told to upgrade to gradle: 2.0.0-alpha5. When I create / run the gradle application it crashes and says:

Error: execution completed 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 a file or directory)

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

Does anyone know how to fix it?

(Note: I am using AndroidStudio 2.0 Preview 5)

As always, thanks in advance.

+4
source share
3 answers

Found a solution:

The update will do the trick.

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

UPDATE (2015-02-28)

alpha9 is now available

Note

Bookmark page <- seems to be MUST for every Android developer. :)

+15
source

Unfortunately, you are not the only one in this matter. There seems to be a build error for build alpha5tools Gradle. Already have a ticket created on Android Bug Tracker.

Additional information: https://code.google.com/p/android/issues/detail?id=198937

In the meantime, the build tool alpha3is a way around it. I am doing the same thing as now, until the problem is resolved in the next version.

Hope this helps.

+7
source

​​(9.Mar.2016) com.android.tools.build:gradle:2.0.0-beta6 . project/gradle.build. gradle 2.11-all

Anyone who is interested in getting the latest update update updates for com.android.tools.build:gradlecan go to bintray and subscribe to it.

Update (Mar 9, 2016)

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

0
source

Source: https://habr.com/ru/post/1624628/


All Articles