Kevin Van Ryckegem Kevin Van Ryckegem - 18 days ago 10
Android Question

Firebase Analytics keeps causing errors in Android, why?

After I installed Firebase Analytics in my Android app, I keep getting the following error and crash of the app.

10-03 19:08:03.917 17740-17759/******* E/FA: Task exception on worker thread: java.lang.IncompatibleClassChangeError:
The method '' was expected to be of type virtual but instead was found to be of type direct
(declaration of '' appears in /data/data/********/files/instant-run/dex/ Source)

Any idea why and what causes this error?


I think something was wrong in the documentation. The instructions didn't tell me this extra step.

I was missing a dependency:

compile ''

In the support docs, however it is clearly mentioned. I added it and it works fine now.