Unable To Compile Under Android Studio 3.0 Canary 1
Solution 1:
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'
Solution 2:
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
Solution 3:
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.
Solution 4:
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
Solution 5:
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.
Post a Comment for "Unable To Compile Under Android Studio 3.0 Canary 1"