System.NotImplementedException run time exception
I got a run time exception, the main code is straight copy from the demo doc.
System.NotImplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
Hi, what s this platform?
Same issue here. testing on Android. Happened both when I ran the initialisation on the PCL library as well as the Android executable
Looking at the code, it throws an exception on the GoogleAnalytics class, method 'Current'. Basically it returns null when it detects that the Portable flag is set.
Why is this so?
EDIT Got it to work, had to rebuild the project, after making sure that the initialising only happens on the executable apps and not the PCL libraries. Thanks!
I somehow can fix this for you?
Hi:
Nope, my fault I guess. Fixed it with a rebuild. Probably didn’t work the first round cos I installed to a PCL, failed and didn’t clean after changing to install on the app project itself. But could be worth noting this on the project page’s instructions though.
From: ksemenenko [mailto:[email protected]] Sent: Tuesday, 4 July, 2017 1:25 AM To: KSemenenko/GoogleAnalyticsForXamarinForms [email protected] Cc: mhmacleod [email protected]; Comment [email protected] Subject: Re: [KSemenenko/GoogleAnalyticsForXamarinForms] System.NotImplementedException run time exception (#23)
I somehow can fix this for you?
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/KSemenenko/GoogleAnalyticsForXamarinForms/issues/23#issuecomment-312698937, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APxFU_fv6S6hOjyd8Nay_pDLeZBFqqZ4ks5sKSP_gaJpZM4OC_NO.
I also experience this and no matter if I install in my main PCL or my satellite PCL, I still get this message:
System.NotImplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
at Plugin.GoogleAnalytics.GoogleAnalytics.get_Current () [0x0000d]
I also tried to add to the Android project, but still exception. What is the main application project? I think that is the main PCL.
What happened to me was this:
- Installed on my PCL - built, run - error
- Installed on my executable (Android project), moved initialisation code there - built, run - error
- Cleaned, rebuilt - worked
Xamarin seems to have a lot of issues with dll dependencies and breaks often with no warning, I get that a lot with Firebase. Just have to confirm everything with a clean-rebuild.
I also often saw this. Apparently not working correctly Rebuild ((