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.
android firebase-performance
fingertricks
source share