Duplicated definition error when binding Android library

RenatoTodorovRenatoTodorov BRMember

Hi there,

I'm trying to bind the Samsung Pay SDK for Android but I'm getting the common type FailedEventArgs already contains a definition for 'p0' error.

I've binded many other Android libs and always managed to solve it by renaming the types/properties on Metadata.xml but in this case, no matter what I put on the Metadata.xml I'll get this error:

<attr path="/api/package[@name='com.samsung.android.sdk.samsungpay.enrollment']/class[@name='EnrollmentManager.FailedEventArgs']/field[@name='p0']"/> matched no nodes. (BG8A04)

Here you can find the relevant part of the class in question:

using System;
using System.Collections.Generic;
using Android.Runtime;

namespace Com.Samsung.Android.Sdk.Samsungpay.Enrollment {

    // Metadata.xml XPath class reference: path="/api/package[@name='com.samsung.android.sdk.samsungpay.enrollment']/class[@name='EnrollmentManager']"
    [global::Android.Runtime.Register ("com/samsung/android/sdk/samsungpay/enrollment/EnrollmentManager", DoNotGenerateAcw=true)]
    public partial class EnrollmentManager : global::Java.Lang.Object {

        public partial class FailedEventArgs : global::System.EventArgs {

            public FailedEventArgs (int p0)
            {
                this.p0 = p0;
            }

            int p0;
            public int P0 {
                get { return p0; }
            }
        }

        public partial class FailedEventArgs : global::System.EventArgs {

            public FailedEventArgs (int p0, string p1)
            {
                this.p0 = p0;
                this.p1 = p1;
            }

            int p0;
            public int P0 {
                get { return p0; }
            }

            string p1;
            public string P1 {
                get { return p1; }
            }
        }
    }
}

Any help is really appreciated!

Thank you

Sign In or Register to comment.