Android Google Analytics Does Not Receive Anything

When setting up Google Analytics for your Android problem you might run into several issues which and you won’t get anything in your analytics.

One common issue in newer Android version is the new Lint 16.0.0 which added to let you see errors, bad practice and coding mishaps. One of these will requirement you to replace  “-”

Replace “-” with an “en dash” character (–, &&;#8211;) ?

So when you have your ga_api_key like this:

<string name="ga_api_key">UA-2123456789-1</string>

It will break it and it will stop Google Analytics from recognising the ID.

For further details and more common problems and fixes take a look at this great list. The issue above is under “Having your Web ID in strings.XML and Lint