mayank.karki
mayank.karki

Reputation: 748

Reference error on using Google Analytics tracker in windows phone

I am using google analytics tracker in my windows phone app. Below is the nuget link

https://www.nuget.org/packages/GoogleAnalyticsTracker.WindowsPhone/

If I build solution I am getting this error

type 'System.Threading.Tasks.Task' exists in both 'f:\Working\Tel - new\packages\System.Threading.Tasks.2.1.2\lib\sl4-wp71\System.Threading.Tasks.WP71.dll' and 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\mscorlib.dll'

How should I resolve this error?

Upvotes: 0

Views: 140

Answers (1)

har07
har07

Reputation: 89285

Install newer GoogleAnalyticsTracker.WP8 package for Windows Phone 8 project, instead of legacy GoogleAnalyticsTracker.WindowsPhone. As suggested in the Nuget page you linked in question :

LEGACY PACKAGE - Use GoogleAnalyticsTracker.WP7 or GoogleAnalyticsTRacker.WP8 instead - .... [GoogleAnalyticsTracker.WindowsPhone]

Upvotes: 1

Related Questions