我使用" android studio - >整合了谷歌分析文件 - >项目结构 - >分析",它添加了这些文件:
1-我的完整androidmanifest http://pastebin.com/Kw83uDTi
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
3- res.xml / app_tracker.xml包含以下数据:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- End current session if app sleeps for a period of time -->
<integer name="ga_sessionTimeout">300</integer>
<!-- Enable automatic Activity measurement -->
<bool name="ga_autoActivityTracking">true</bool>
<!-- The property id associated with this analytics tracker -->
<string name="ga_trackingId">UA-72582079-3</string>
<!--
See Project Structure -> Analytics -> Google Analytics -> Learn More
to learn more about configuring this file.
-->
</resources>
3-文件AnalyticsTrackers.java http://pastebin.com/1TqUYKpW
但是我测试了应用程序并且它看起来并不是谷歌分析工作,我必须做点别的吗?有人在android studio中测试了这个选项吗?
由于