Unable to compile under Android Studio 3.0 Canary 1

那年仲夏 提交于 2019-11-30 11:27:30
Mohamed ALOUANE

Firebase team have suggested to use this as a fix :

classpath ('com.google.firebase:firebase-plugins:1.1.0') {
    exclude group: 'com.google.guava', module: 'guava-jdk5'
}

EDIT: Including the new updated package will auto-exclude the guava-jdk5 package.

classpath 'com.google.firebase:firebase-plugins:1.1.1'

The problem is the new Android plugin version 3.0.0-alpha1

Just revert the plugin to 2.3 or 2.4-alpha7 and use gradle 3.5, it will work with the Firebase Plugin

Amine Bou

I have the exact same problem, when I created a new project, and added the lines one by one.

The line that was causing the problem is

classpath 'com.google.firebase:firebase-plugins:1.1.0'

that was in the project build.gradle file. Removing that line fixes the issue.

Other than firebase if you have any other build script (maybe custom build scripts), that is using Guava library you must upgrade it to guava:21:0 or exclude guava from it

I am seeing the "Execution failed for task" error starting with Android studio 2.4 and now 3.0 canary running on my Win7 PC. What seems to help for me is to run Task Manager and then kill the java.exe process. The build runs through cleanly after that for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!