I added google analytics following the appery tutorial. It ran in all versions below 5.0
But When i run it on a lollipop device, the app crashed with the following error.
java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.google.android.gms.analytics.service.START (has extras) }
at android.app.ContextImpl.validateServiceIntent(ContextImpl.java:1828)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1927)
at android.app.ContextImpl.bindService(ContextImpl.java:1905)
at android.content.ContextWrapper.bindService(ContextWrapper.java:539)
at com.google.analytics.tracking.android.AnalyticsGmsCoreClient.connect(AnalyticsGmsCoreClient.java:82)
at com.google.analytics.tracking.android.GAServiceProxy.connectToService(GAServiceProxy.java:279)
at com.google.analytics.tracking.android.GAServiceProxy.createService(GAServiceProxy.java:163)
at com.google.analytics.tracking.android.GAThread.init(GAThread.java:95)
at com.google.analytics.tracking.android.GAThread.run(GAThread.java:493)