The Call Is Ambiguous Between The Following Methods Or Properties: `android.app.alertdialog.builder.setpositivebutton
Momently i'm trying to create an Alert Dialog on Android application with C#. Unfortunately I get this error: The call is ambiguous between the following methods or properties: `An
Solution 1:
your call to .setPositiveButton("OK", null)
is ambiguous because the method has 2 overloads and your second parameter null can be interpreted as :
System.EventHandler<Android.Content.DialogClickEventArgs>
- or as a
Android.Content.IDialogInterfaceOnClickListener
if you want to invoke the second overload, try this:
.setPositiveButton("OK", (Android.Content.IDialogInterfaceOnClickListener)null)
Post a Comment for "The Call Is Ambiguous Between The Following Methods Or Properties: `android.app.alertdialog.builder.setpositivebutton"