Firebase / Plugin Beta Build Issue

When integrating the current version of Android Firebase Performance Monitoring (beta) released during 2017 I / O as follows ...

Add to the build.gradle project:

dependencies { classpath 'com.google.firebase:firebase-plugins:1.1.0' } 

Add to build.gradle application:

 dependencies { compile 'com.google.firebase:firebase-perf:10.2.6' } 

You may encounter the following build error.

 Error:Execution failed for task ':app:packageDebug'. > com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor; 

This is caused by a Guava dependency mismatch, which can be resolved as follows by modifying the build.gradle project as follows:

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

The Firebase team is aware of this issue, has proposed the above solution and will be fixed in a future version.

Put it there to help someone else scratch their head.

+7
android firebase-performance
source share
1 answer

This issue has been fixed in version 1.1.1 firebase plugins. To use the updated version, simply update the build.gradle file at the project level as follows:

 buildscript { repositories { jcenter() } dependencies { classpath ('com.google.firebase:firebase-plugins:1.1.1') } } 
+1
source share

All Articles