Google Analytics service Intent crashes on Android Oreo

I recommend upgrading to play-services version 11.4.0. Add this in your Gradle file:

compile "com.google.android.gms:play-services-analytics:11.4.0

From the Play Services Revision 11.4.0, analytics section:

  • Added a new class AnalyticsJobService. This class provides compatibility support for Android O and is used by Analytics to upload data. No action is necessary to use this class, it’s added automatically as part of the Analytics package.
  • Deprecated the getContext() method of the AnalyticsService class.
  • Deprecated the CampaignTrackingService class.

and also you have to get permission. android:permission="android.permission.BIND_JOB_SERVICE"

See below https://developers.google.com/android/reference/com/google/android/gms/analytics/AnalyticsJobService


because CampaignTrackingService is now Deprecated

just remove this line from your manifest

<service android:name="com.google.android.gms.analytics.CampaignTrackingService"
         android:exported="true"/>