谷歌Android分析V3:"服务不可用" [英] android google analytics v3: "Service unavailable"

查看:325
本文介绍了谷歌Android分析V3:"服务不可用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面下面简单的指导, <一href="https://developers.google.com/analytics/devguides/collection/android/v3/">https://developers.google.com/analytics/devguides/collection/android/v3/

following the simple guide here, https://developers.google.com/analytics/devguides/collection/android/v3/

当我运行我的应用程序,我得到这个,

when i run my app, i get this,

10-28 18:01:17.973  27022-27069/com.foo.bar W/GAV3﹕ Thread[GAThread,5,main]: Service unavailable (code=1), will retry.
10-28 18:01:17.973  27022-27069/com.foo.bar I/GAV3﹕ Thread[GAThread,5,main]: No campaign data found.
10-28 18:01:17.973      525-865/system_process W/ActivityManager﹕ Unable to start service Intent { act=com.google.android.gms.analytics.service.START cmp=com.google.android.gms/.analytics.service.AnalyticsService (has extras) } U=0: not found

这调试,它试图开始不存在的服务。好像我应该有定义,在我的清单,但导游没有提到这一点。

from the debug, it's trying to start a service that doesn't exist. it seems like i should have to define that in my manifest, but the guide says nothing about that.

我已经放在 analytics.xml 在我RES /值的文件夹中,例如,

i've placed analytics.xml in my res/values folder as such,

<?xml version="1.0" encoding="utf-8" ?>
<resources
    xmlns:tools="https://schemas.android.com/tools"
    tools:ignore="TypographyDashes">

  <string name="ga_trackingId">UA-XXX-1</string>
  <bool name="ga_autoActivityTracking">true</bool>
  <bool name="ga_reportUncaughtExceptions">true</bool>
  <integer name="ga_dispatchPeriod">1</integer>
  <bool name="ga_debug">true</bool>
</resources>

我完全难住在这里,因为导游是如此简单。如果这有什么差别(它不应该),我建立了Android工作室/摇篮,并添加依赖这个样子,

i'm completely stumped here since the guide is so simple. if it makes any difference (and it shouldn't), i'm building with android studio / gradle, and adding the dependency like this,

compile files('libs/libGoogleAnalyticsServices.jar')

编辑:有一个想法......这种设备不运行谷歌的服务。没有谷歌Analytics的lib取决于正在安装APK谷歌的服务?

had a thought ... this device DOES NOT run google services. does the google analytics lib depend on the google service APK being installed?

推荐答案

您可以忽略警告,现在是这样。

You can ignore that warning for now.

从谷歌手机软件分析小组:

From the Google Mobile App Analytics group:

The SDK is simply attempting to connect to a global dispatch service, which is unavailable on your device.  The hits are still being generated and sent to GA normally.

在GA开发者网站将很快提供更多这方面的信息。

The GA developer site will provide more information on this soon.

链接到组:<一href="https://groups.google.com/forum/#!forum/ga-mobile-app-analytics">https://groups.google.com/forum/#!forum/ga-mobile-app-analytics

这篇关于谷歌Android分析V3:&QUOT;服务不可用&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆