Page 1 of 1

google analytics plugin crashing in Lollipop version

Posted: Sat Sep 17, 2016 6:08 pm
by Ram7585741

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)


google analytics plugin crashing in Lollipop version

Posted: Mon Sep 19, 2016 2:17 pm
by Illya Stepanov

Hello -

Could you please specify which exact tutorial you are following?


google analytics plugin crashing in Lollipop version

Posted: Mon Sep 19, 2016 5:04 pm
by Ram7585741

google analytics plugin crashing in Lollipop version

Posted: Mon Sep 19, 2016 5:10 pm
by Illya Stepanov

Thanks for reporting this, we will check this out.


google analytics plugin crashing in Lollipop version

Posted: Tue Sep 20, 2016 5:49 am
by Ram7585741

i found this topic in stackoverflow

http://stackoverflow.com/questions/26...

they talk about moving to google analytics version 3. we have only GA Version 2 in appery.

So, I just reduced the target SDK version to 4.2 from 5.0. Now its working on lollipop due to backward compatibility, i guess.

But still, pls do clarify from your end if there is any info on google analytics crash.


google analytics plugin crashing in Lollipop version

Posted: Fri Sep 23, 2016 9:29 pm
by Evgene Karachevtsev

Hello,

Thank you for the feedback, we reported this issue as the bug, our development team is working on it.