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:1674) at androID.app.ContextImpl.bindServiceCommon(ContextImpl.java:1773) at androID.app.ContextImpl.bindService(ContextImpl.java:1751) at androID.content.Contextwrapper.bindService(Contextwrapper.java:538) at com.Google.analytics.tracking.androID.AnalyticsGmscoreClIEnt.connect(AnalyticsGmscoreClIEnt.java:82) at com.Google.analytics.tracking.androID.GAServiceProxy.connectToService(GAServiceProxy.java:330) at com.Google.analytics.tracking.androID.GAServiceProxy.createService(GAServiceProxy.java:210) at com.Google.analytics.tracking.androID.GAThread.init(GAThread.java:85) at com.Google.analytics.tracking.androID.GAThread.run(GAThread.java:352)
@H_502_0@我让我的项目使用maven与谷歌分析v3和播放服务4.3.23即使在棒棒糖nexus 5一切正常.@H_502_0@在我迁移到gradle后,我保留了分析v3并将更新的播放服务更新到6.1.71,不知道这是否可能是问题@H_502_0@更多堆栈跟踪@H_502_0@2-04 14:23:42.331 13618-13759/com.xxxxxx.mypackage V/GAV3﹕ Thread[GAThread,5,main]: connecting to Analytics service12-04 14:23:42.337 13618-13759/com.xxxxxx.mypackage W/System.err﹕ java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.Google.androID.gms.analytics.service.START (has extras) }12-04 14:23:42.337 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at androID.app.ContextImpl.valIDateServiceIntent(ContextImpl.java:1674)12-04 14:23:42.337 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at androID.app.ContextImpl.bindServiceCommon(ContextImpl.java:1773)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at androID.app.ContextImpl.bindService(ContextImpl.java:1751)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at androID.content.Contextwrapper.bindService(Contextwrapper.java:538)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at com.Google.analytics.tracking.androID.AnalyticsGmscoreClIEnt.connect(AnalyticsGmscoreClIEnt.java:82)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at com.Google.analytics.tracking.androID.GAServiceProxy.connectToService(GAServiceProxy.java:330)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at com.Google.analytics.tracking.androID.GAServiceProxy.createService(GAServiceProxy.java:210)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at com.Google.analytics.tracking.androID.GAThread.init(GAThread.java:85)12-04 14:23:42.338 13618-13759/com.xxxxxx.mypackage W/System.err﹕ at com.Google.analytics.tracking.androID.GAThread.run(GAThread.java:352)12-04 14:23:42.342 13618-13759/com.xxxxxx.mypackage W/FlurryAgent﹕ Error logged: uncaught12-04 14:23:42.342 13618-13759/com.xxxxxx.mypackage W/FlurryAgent﹕ Trying to end session12-04 14:23:42.346 13618-13759/com.xxxxxx.mypackage W/FlurryAgent﹕ Ending session12-04 14:23:42.350 13618-13759/com.xxxxxx.mypackage V/GAV3﹕ Thread[GAThread,5,main]: Tracking Exception: IllegalArgumentException (@ContextImpl:valIDateServiceIntent:1674) {GAThread}12-04 14:23:42.351 13618-13759/com.xxxxxx.mypackage V/GAV3﹕ Thread[GAThread,5,main]: dispatch call queued. dispatch will run once initialization is complete.12-04 14:23:42.351 13618-13759/com.xxxxxx.mypackage V/GAV3﹕ Thread[GAThread,5,main]: Passing exception to original handler.12-04 14:23:42.351 13618-13759/com.xxxxxx.mypackage E/ACRA﹕ ACRA caught a IllegalArgumentException exception for com.xxxxxx.mypackage. Building report.12-04 14:23:42.565 13618-13759/com.xxxxxx.mypackage I/ACRA﹕ READ_LOGS granted! ACRA can include LogCat and DropBox data.12-04 14:23:42.603 13618-13759/com.xxxxxx.mypackage D/ACRA﹕ RetrIEving logcat output...12-04 14:23:42.629 13618-13759/com.xxxxxx.mypackage D/ACRA﹕ Writing crash report file 1417710222000.stacktrace.12-04 14:23:42.643 13618-13759/com.xxxxxx.mypackage D/ACRA﹕ About to start ReportSenderWorker from #handleException12-04 14:23:42.645 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Mark all pending reports as approved.12-04 14:23:42.645 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Looking for error files in /data/data/com.xxxxxx.mypackage/files12-04 14:23:42.646 13618-14174/com.xxxxxx.mypackage D/ACRA﹕ Waiting for Toast + worker...12-04 14:23:42.649 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ #checkAndSendReports - start12-04 14:23:42.649 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Looking for error files in /data/data/com.xxxxxx.mypackage/files12-04 14:23:42.650 13618-14173/com.xxxxxx.mypackage I/ACRA﹕ Sending file 1417710222000-approved.stacktrace12-04 14:23:42.661 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Sending report 180cde9c-d8e3-4d00-b677-185630e6c44b12-04 14:23:42.661 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Connect to https://docs.Google.com/spreadsheet/formResponse?formkey=dE04R1o0VjJDM29QXaQ2ZTVJsVNzdGc6MQ&ifq12-04 14:23:42.708 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ Sending request to https://docs.Google.com/spreadsheet/formResponse?formkey=dE04R1o0VjJDM29QXaQ2ZTVJsVNzdGc6MQ&ifq12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:42.991 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Address from preferences ->null12-04 14:23:43.000 13618-13618/com.xxxxxx.mypackage I/INFO﹕ *****************************12-04 14:23:43.000 13618-13618/com.xxxxxx.mypackage I/INFO﹕ Cancel move camera12-04 14:23:43.000 13618-13618/com.xxxxxx.mypackage I/INFO﹕ *****************************12-04 14:23:43.059 13618-13618/com.xxxxxx.mypackage V/GCMbroadcastReceiver﹕ onReceive: com.Google.androID.c2dm.intent.REGISTRATION12-04 14:23:43.059 13618-13618/com.xxxxxx.mypackage V/GCMbroadcastReceiver﹕ GCM IntentService class: com.xxxxxx.mypackage.GCMIntentService12-04 14:23:43.061 13618-13618/com.xxxxxx.mypackage V/GCMBaseIntentService﹕ Acquiring wakelock12-04 14:23:43.066 13618-13618/com.xxxxxx.mypackage V/GCMBaseIntentService﹕ Intent service name: GCMIntentService-670358886800-112-04 14:23:43.066 13618-13618/com.xxxxxx.mypackage E/GCMBaseIntentService﹕ [GCMIntentService] start12-04 14:23:43.069 13618-14192/com.xxxxxx.mypackage E/GCMRegistrar﹕ internal error: retry receiver class not set yet12-04 14:23:43.070 13618-13618/com.xxxxxx.mypackage V/GCMbroadcastReceiver﹕ onReceive: com.Google.androID.c2dm.intent.REGISTRATION12-04 14:23:43.070 13618-14192/com.xxxxxx.mypackage V/GCMRegistrar﹕ Registering receiver12-04 14:23:43.070 13618-13618/com.xxxxxx.mypackage V/GCMbroadcastReceiver﹕ GCM IntentService class: com.xxxxxx.mypackage.GCMIntentService12-04 14:23:43.070 13618-13618/com.xxxxxx.mypackage V/GCMBaseIntentService﹕ Acquiring wakelock12-04 14:23:43.073 13618-14192/com.xxxxxx.mypackage D/GCMBaseIntentService﹕ handleRegistration: registrationID = null, error = null, unregistered = com.xxxxxx.mypackage12-04 14:23:43.074 13618-14192/com.xxxxxx.mypackage D/GCMRegistrar﹕ resetting backoff for com.xxxxxx.mypackage12-04 14:23:43.074 13618-14192/com.xxxxxx.mypackage V/GCMRegistrar﹕ Saving regID on app version 2512-04 14:23:43.089 13618-14192/com.xxxxxx.mypackage V/GCMIntentService onUnregistered﹕ [ 12-04 14:23:43.090 13618:14192 V/GCMBaseIntentService ] Releasing wakelock12-04 14:23:43.092 13618-14192/com.xxxxxx.mypackage D/GCMBaseIntentService﹕ handleRegistration: registrationID = APA91bHiOw6h7JU9dvLc1Qqw04GXQkrlbV-4LZIQfO6e8uIEGaFSsVNqsdmTi53PXZVEARzI6XLxK3rXXM3OrUm8wIRC0jmgB2yXrrVRoTkSvwQXtPSywJR2AJkcs_2a39KwvLxnyN97JLdP8hVVLtSElBCGYLNMyDIlXYWC01i7Th4OyVA1FOM, error = null, unregistered = null12-04 14:23:43.092 13618-14192/com.xxxxxx.mypackage D/GCMRegistrar﹕ resetting backoff for com.xxxxxx.mypackage12-04 14:23:43.095 13618-14192/com.xxxxxx.mypackage V/GCMRegistrar﹕ Saving regID on app version 2512-04 14:23:43.116 13618-14192/com.xxxxxx.mypackage V/GCMIntentService onRegistered﹕ APA91bHiOw6h7JU9dvLc1Qqw04GXQkrlbV-4LZIQfO6e8uIEGaFSsVNqsdmTi53PXZVEARzI6XLxK3rXXM3OrUm8wIRC0jmgB2yXrrVRoTkSvwQXtPSywJR2AJkcs_2a39KwvLxnyN97JLdP8hVVLtSElBCGYLNMyDIlXYWC01i7Th4OyVA1FOM12-04 14:23:43.116 13618-14192/com.xxxxxx.mypackage V/GCMBaseIntentService﹕ Releasing wakelock12-04 14:23:43.660 13618-13634/com.xxxxxx.mypackage I/art﹕ Background sticky concurrent mark sweep GC freed 57034(3MB) AllocSpace objects, 53(2MB) LOS objects, 13% free, 35MB/41MB, paused 8.499ms total 70.673ms12-04 14:23:43.872 13618-14173/com.xxxxxx.mypackage W/ResponseProcesscookies﹕ InvalID cookie header: "Set-cookie: NID=67=rrqRFddFUdEd6qmmRaW7u3wCSFSDlVoFobX4NqYedntag4sOwuzwAeWjh6q3tsENizFX-5igAcBPOUj0M_QXkQKGPfKeCzpDD5-oXrveoj8D1flwIx1TCB5v8i0F6CHR;Domain=.Google.com;Path=/;Expires=Fri, 05-Jun-2015 16:24:18 GMT;httpOnly". Unable to parse expires attribute: Fri12-04 14:23:43.872 13618-14173/com.xxxxxx.mypackage E/ACRA﹕ Failed to send crash report for 1417710222000-approved.stacktrace org.acra.sender.ReportSenderException: Error while sending report to Google Form. at org.acra.sender.GoogleFormSender.send(GoogleFormSender.java:88) at org.acra.SenDWorker.sendCrashReport(SenDWorker.java:178) at org.acra.SenDWorker.checkAndSendReports(SenDWorker.java:141) at org.acra.SenDWorker.run(SenDWorker.java:77) Caused by: java.io.IOException: Host returned error code 404 at org.acra.util.httpRequest.sendPost(httpRequest.java:139) at org.acra.sender.GoogleFormSender.send(GoogleFormSender.java:85) at org.acra.SenDWorker.sendCrashReport(SenDWorker.java:178) at org.acra.SenDWorker.checkAndSendReports(SenDWorker.java:141) at org.acra.SenDWorker.run(SenDWorker.java:77)12-04 14:23:43.873 13618-14173/com.xxxxxx.mypackage D/ACRA﹕ #checkAndSendReports - finish12-04 14:23:43.950 13618-14174/com.xxxxxx.mypackage D/ACRA﹕ Wait for Toast + worker ended. Kill Application ? true12-04 14:23:43.951 13618-14174/com.xxxxxx.mypackage E/AndroIDRuntime﹕ FATAL EXCEPTION: GAThread Process: com.xxxxxx.mypackage, PID: 13618 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:1674) at androID.app.ContextImpl.bindServiceCommon(ContextImpl.java:1773) at androID.app.ContextImpl.bindService(ContextImpl.java:1751) at androID.content.Contextwrapper.bindService(Contextwrapper.java:538) at com.Google.analytics.tracking.androID.AnalyticsGmscoreClIEnt.connect(AnalyticsGmscoreClIEnt.java:82) at com.Google.analytics.tracking.androID.GAServiceProxy.connectToService(GAServiceProxy.java:330) at com.Google.analytics.tracking.androID.GAServiceProxy.createService(GAServiceProxy.java:210) at com.Google.analytics.tracking.androID.GAThread.init(GAThread.java:85) at com.Google.analytics.tracking.androID.GAThread.run(GAThread.java:352)
解决方法:
@H_502_0@Lollipop强制执行安全限制,您无法使用隐式Intent调用startService(),stopService()或bindService().为了使其在Lollipop上工作,请更新代码以在Intent中指定Componentname. 总结以上是内存溢出为你收集整理的android – 服务意图必须明确 – Google Analytics全部内容,希望文章能够帮你解决android – 服务意图必须明确 – Google Analytics所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)