Hello,
I'm referencing DependencyService implemented in a PCL project, as shown below, from a PCL.Android project, I get a System.NullReferenceException: Object reference not set to an instance of an object error.
public static string Locale()
{
return DependencyService.Get<ILocale>().GetCurrent();
}
Same code works fine with iOS and Windows Phone. Is this a bug or I’m doing something wrong?
Thanks,
Narcís