Added this line to dependencies in build.gradle
:
classpath 'com.google.gms:google-services:3.0.0'
Also added this line to dependencies in app/build.gradle
:
compile 'com.google.firebase:firebase-core:10.0.1'
Now the part I'm not sure is do I have to run this code at least once to even start automatic logging?
FirebaseAnalytics.getInstance(this);
Or is it only required if I want to log custom events and want to have a reference to the analytics instance?