Troubleshooting - Android N

Problems running Android N with older versions of the SDK

Description of issue

Android N has been found to cause issues with some older versions of the SDK.  The issue will manifest in a crash on startup with a stack trace similar to the following:

java.lang.RuntimeException: Tracking context has not been initialized. Please call TrackingContext.start() to initialize the TrackingContext before calling TrackingContext.Instance()
at com.foresee.sdk.tracker.TrackingContext.Instance(
at com.foresee.sdk.ForeSee.initRecording(
at com.foresee.sdk.ForeSee.updateConfig(
at com.foresee.sdk.ForeSee.useLocalConfig(
at com.foresee.sdk.ForeSee.checkLocale(
at com.foresee.sdk.ForeSee.activityResumed(


This issue is only seen on versions 3.4 to 3.4.3 of the SDK, and only when Replay is enabled in the configuration file.


This issue will require an updated version of your app to be released to the Play store, unless the app implements the SDK is using the remote configuration option.

If the app is using remote configuration, this issue can be solved by disabling Replay. Remove the cxReplayEnabled key in your configuration file or set it to false. The new configuration will be loaded the next time the app isstarted with internet access.

If the app is not using remote configuration (default setup), update to the latest version of the SDK using the Quick Start guide and make a release to the Play store

Other articles in this section:

  1. Android N (current article)
  2. Debugging
  3. Disabling the SDK
  4. Common Problems
  5. Dependencies