Closed emaddoma closed 6 years ago
Hello,
I'm just getting started with Xamarin, I'm making a PCL for both platforms and though iOS works perfectly, the same code on Android throws this error. I have the package added to both platforms. Am I missing something?
String deviceId = CrossSecureStorage.Current.GetValue("LHPEDeviceID", null); if(deviceId == null){ deviceId = Guid.NewGuid().ToString(); CrossSecureStorage.Current.SetValue("LHPEDeviceID", deviceId); }
Cleaning the project solved the problem.
Hello,
I'm just getting started with Xamarin, I'm making a PCL for both platforms and though iOS works perfectly, the same code on Android throws this error. I have the package added to both platforms. Am I missing something?
String deviceId = CrossSecureStorage.Current.GetValue("LHPEDeviceID", null); if(deviceId == null){ deviceId = Guid.NewGuid().ToString(); CrossSecureStorage.Current.SetValue("LHPEDeviceID", deviceId); }