{"action":"created","issue":{"url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/71","repository_url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin","labels_url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/71/comments","events_url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/71/events","html_url":"https://github.com/EgorBo/Toasts.Forms.Plugin/issues/71","id":146952063,"number":71,"title":"NullReferenceException in Android","user":{"login":"aji27","id":15778807,"avatar_url":"https://avatars.githubusercontent.com/u/15778807?v=3","gravatar_id":"","url":"https://api.github.com/users/aji27","html_url":"https://github.com/aji27","followers_url":"https://api.github.com/users/aji27/followers","following_url":"https://api.github.com/users/aji27/following{/other_user}","gists_url":"https://api.github.com/users/aji27/gists{/gist_id}","starred_url":"https://api.github.com/users/aji27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aji27/subscriptions","organizations_url":"https://api.github.com/users/aji27/orgs","repos_url":"https://api.github.com/users/aji27/repos","events_url":"https://api.github.com/users/aji27/events{/privacy}","received_events_url":"https://api.github.com/users/aji27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T14:57:21Z","updated_at":"2016-04-09T09:27:20Z","closed_at":null,"body":"My app crashes when I try to use this plugin. (Xamarin Forms App, PCL)\r\n\r\nI do this in my MainActivity:\r\n`            DependencyService.Register<IToastNotificator, ToastNotificatorImplementation>();\r\n            ToastNotificatorImplementation.Init(this);`\r\nThen I do this:\r\n`            var notificator = DependencyService.Get<IToastNotificator>();\r\n            await notificator.Notify(ToastNotificationType.Success, \"test\", \"test\", TimeSpan.FromSeconds(5.0d));`\r\n\r\nCan someone help me please? I am really stuck here.\r\n\r\nEdit: +added stacktrace\r\n\r\n`System.NullReferenceException: Object reference not set to an instance of an object\r\n  at Plugin.Toasts.DefaultToastLayoutRenderer.Render (Android.App.Activity activity, ToastNotificationType type, System.String title, System.String description, System.Object context) [0x00036] in C:\\Users\\adamp\\Source\\Repos\\Toasts.Forms.Plugin\\Toasts.Forms.Plugin.Droid\\DefaultToastLayoutRenderer.cs:28 \r\n  at Plugin.Toasts.ToastNotificatorImplementation.Notify (ToastNotificationType type, System.String title, System.String description, TimeSpan duration, System.Object context, Boolean clickable) [0x00027] in C:\\Users\\adamp\\Source\\Repos\\Toasts.Forms.Plugin\\Toasts.Forms.Plugin.Droid\\ToastNotificatorImplementation.cs:27 `\r\n\r\nKind regards,\r\nAji27"},"comment":{"url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/comments/207752118","html_url":"https://github.com/EgorBo/Toasts.Forms.Plugin/issues/71#issuecomment-207752118","issue_url":"https://api.github.com/repos/EgorBo/Toasts.Forms.Plugin/issues/71","id":207752118,"user":{"login":"aji27","id":15778807,"avatar_url":"https://avatars.githubusercontent.com/u/15778807?v=3","gravatar_id":"","url":"https://api.github.com/users/aji27","html_url":"https://github.com/aji27","followers_url":"https://api.github.com/users/aji27/followers","following_url":"https://api.github.com/users/aji27/following{/other_user}","gists_url":"https://api.github.com/users/aji27/gists{/gist_id}","starred_url":"https://api.github.com/users/aji27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aji27/subscriptions","organizations_url":"https://api.github.com/users/aji27/orgs","repos_url":"https://api.github.com/users/aji27/repos","events_url":"https://api.github.com/users/aji27/events{/privacy}","received_events_url":"https://api.github.com/users/aji27/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T09:27:19Z","updated_at":"2016-04-09T09:27:19Z","body":"\n\nThank you for your quick response. I will be working on this peoject on the next wednesday, so I will answer you then.\nHave a nice weekend.\nKind regards,aji27\n\n\nVon meinem Samsung Gerät gesendet.\n\n-------- Ursprüngliche Nachricht --------\nVon: Adam <notifications@github.com>\nDatum: 09.04.2016  02:19  (GMT+01:00)\nAn: \"EgorBo/Toasts.Forms.Plugin\" <Toasts.Forms.Plugin@noreply.github.com>\nCc: aji27 <ajanth.kandasamy@hotmail.com>\nBetreff: Re: [EgorBo/Toasts.Forms.Plugin] NullReferenceException in Android (#71)\n\nIf you go to your Resources.Designer.cs file and delete everything inside of it, then rebuild, does that solve the problem?\n\n---\nYou are receiving this because you authored the thread.\nReply to this email directly or view it on GitHub:\nhttps://github.com/EgorBo/Toasts.Forms.Plugin/issues/71#issuecomment-207660764\n"}}