When i am trying to get tracker in my activity it show error that -this method is undefine \"getactivity()\" in google analytic v4
// Get tracker.
T
I too faced this issue a little while back. To solve it I, as mentioned above, removed getActivity() as well as adding .MyApplication to android:name in the manifest. However I needed to add MyApplication before TrackerName as shown below.
Tracker t = ((MyApplication) getApplication()).getTracker(MyApplication.TrackerName.APP_TRACKER);
Hope this helps