Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Performance Beta / Plugin build issue

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

Add to project build.gradle:

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

Add to app build.gradle:

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

You may come across 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 project build.gradle as follows:

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

The Firebase team are aware of this issue, suggested the above workaround and will be fixing in a future release.

Putting this out there to help anyone else scratching their head.

like image 225
fingertricks Avatar asked May 26 '17 22:05

fingertricks


People also ask

Can I disable the Firebase Performance Monitoring Gradle plugin?

Firebase Performance has released a new version of perf-plugin ( v1.3.0 ). This would enable disabling the Firebase Performance Monitoring Gradle plugin for a specific build variant (including buildTypes or productFlavors ).

How do I know if Firebase SDK is working?

Firebase can detect if you've successfully added the Performance Monitoring SDK to your app when it receives event information (like app interactions) from your app. Usually within 10 minutes of starting your app, the Performance dashboard of the Firebase console displays an "SDK detected" message.

How do I view my Firebase/Performance Logs?

Performance Monitoring tags its log messages with Firebase/Performance so that you can filter your log messages. Click on the URL to view your data in the Firebase console. It may take a few moments for the data to update in the dashboard. If your app isn't logging performance events, review the troubleshooting tips. 2.

What is Firebase Performance Monitoring?

An error occurred while retrieving sharing information. Please try again later. Firebase Performance Monitoring is a service that helps you to gain insight into the performance characteristics of your Apple, Android, and web apps.


1 Answers

This issue was fixed in version 1.1.1 of firebase plugins. To use the updated version just update your project-level build.gradle file as follows:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath ('com.google.firebase:firebase-plugins:1.1.1')
    }
}
like image 89
vovahost Avatar answered Oct 19 '22 14:10

vovahost