react-native-analytics-segment-io icon indicating copy to clipboard operation
react-native-analytics-segment-io copied to clipboard

Android app crashes on No virtual method recordScreenViews()

Open chuyeoh opened this issue 6 years ago • 0 comments

react-native-analytics-segment-io version 3.1.3 Platform: Android React-Native: 0.56.0

Crash log

No virtual method recordScreenViews()Lcom/segment/analytics/Analytics$Builder; in class Lcom/segment/analytics/Analytics$Builder; or its super classes (declaration of 'com.segment.analytics.Analytics$Builder' appears in base.apk:classes2.dex)

App crashes when setup with recordScreenViews options invoked.

  const options = {
    recordScreenViews: true,
    trackApplicationLifecycleEvents: true,
    trackAttributionData: true,
  };
  Analytics.setup(SEGMENT_WRITE_KEY, options)
    .then(() => {...});

Has anyone came across this issue? Setup() documentation does say that recordScreenViews is supported on android.

chuyeoh avatar Oct 02 '18 06:10 chuyeoh