jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Gelocator 3.0.4 System.NotImplementedException #336

Closed brux88 closed 8 years ago

brux88 commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []) and remove all unused areas

This is a

Which plugin does this impact:

Version Number of Plugin:3.04 Device Tested On:andordi 6.0 Simulator Tested On:

Expected Behavior

gestcurrentposition

Actual Behavior

return thi error: {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.Geolocator.CrossGeolocator.get_Current () [0x0000d] in C:\projects\xamarin-plugins\Geolocator\Geolocator\Geolocator.Plugin\CrossGeolocator.cs:23 at WuThinkX.View.MapPage+d__4.MoveNext () [0x00018] in C:\Progetti\WuThinkX\WuThinkX\WuThinkX\View\MapPage.xaml.cs:140 }

hello, I have followed the guide, I installed the plugin on all platforms but when run the code, from my plc project gives me this error, I also tried to download the example (Xamarin.Plugins/Geolocator/Common/GeolocatorPlugin/samples) works, but if I try to update the from 1.0.3 to last version 3.0.4 gives me the same problem.

Steps to reproduce the Behavior

jamesmontemagno commented 8 years ago

Did you update ALL of the projects that have the nuget installed? You have to update your PCL and your Android/iOS/Windows Project.

brux88 commented 8 years ago

yes all project have geolocator 3.0.4

jamesmontemagno commented 8 years ago

I have updated the sample and it is working perfect. I am unable to reproduce. Make sure you clean/rebuild and that all of your Projects that reference the Geolocator are on the same version.

brux88 commented 8 years ago

hi, i have try, i have remove all reference (bin,obj) and rebuild and now work thanks

waden34 commented 7 years ago

Another thing to try is deleting the project.lock.json file. I uninstalled, cleaned, rebuilt to no avail, but deleting that file finally got things working again. I think I had an invalid reference in there due to moving projects around.