Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在windows phone中使用Google Analytics tracker时出现参考错误_C#_Windows Phone 8_Google Analytics - Fatal编程技术网

C# 在windows phone中使用Google Analytics tracker时出现参考错误

C# 在windows phone中使用Google Analytics tracker时出现参考错误,c#,windows-phone-8,google-analytics,C#,Windows Phone 8,Google Analytics,我正在windows phone应用程序中使用google analytics tracker。下面是nuget链接 如果我构建解决方案,我会遇到此错误 类型“System.Threading.Tasks.Task”在这两个文件中都存在 'f:\Working\Tel- 新建\packages\System.Threading.Tasks.2.1.2\lib\sl4-wp71\System.Threading.Tasks.wp71.dll' 和'c:\ProgramFiles(x86)\Ref

我正在windows phone应用程序中使用google analytics tracker。下面是nuget链接

如果我构建解决方案,我会遇到此错误

类型“System.Threading.Tasks.Task”在这两个文件中都存在 'f:\Working\Tel- 新建\packages\System.Threading.Tasks.2.1.2\lib\sl4-wp71\System.Threading.Tasks.wp71.dll' 和'c:\ProgramFiles(x86)\Reference 程序集\Microsoft\Framework\WindowsPhone\v8.0\mscorlib.dll'

如何解决此错误?

为Windows Phone 8项目安装更新的软件包,而不是旧式的
GoogleAnalyticsTracker.WindowsPhone
。正如您所链接的Nuget页面中所建议的:

旧软件包-改用GoogleAnalyticsTracker.WP7或GoogleAnalyticsTracker.WP8-。。。。[]


尝试删除对“System.Threading.Tasks.WP71”的引用。。你的项目是WP8,不是吗?是的,WP8。如果我删除该dll,则分析执行时代码会中断。