Search code examples
androidxamarinxamarin.androidxamarin-studio

Error While creating Java Binding Library in Xamarin


we use xamarin for android and we are trying to integrate inmobi (inmobi) ads in to our app and while we try to create a Java Binding Library we get following errors.

Error   69  The type 'Com.Inmobi.Androidsdk.AdRequestFailedEventArgs' already contains a definition for 'p0'    
Error   70  The type 'Com.Inmobi.Androidsdk.AdRequestFailedEventArgs' already contains a definition for 'P0'    
Error   71  The type 'Com.Inmobi.Androidsdk.AdRequestFailedEventArgs' already contains a definition for 'p1'    
Error   72  The type 'Com.Inmobi.Androidsdk.AdRequestFailedEventArgs' already contains a definition for 'P1'    
Error   73  The type 'Com.Inmobi.Androidsdk.DismissAdScreenEventArgs' already contains a definition for 'p0'    
Error   74  The type 'Com.Inmobi.Androidsdk.DismissAdScreenEventArgs' already contains a definition for 'P0'    
Error   75  The type 'Com.Inmobi.Androidsdk.LeaveApplicationEventArgs' already contains a definition for 'p0'   
Error   76  The type 'Com.Inmobi.Androidsdk.LeaveApplicationEventArgs' already contains a definition for 'P0'   
Error   77  The type 'Com.Inmobi.Androidsdk.ShowAdScreenEventArgs' already contains a definition for 'p0'   
Error   78  The type 'Com.Inmobi.Androidsdk.ShowAdScreenEventArgs' already contains a definition for 'P0'   
Error   67  The type 'Com.Inmobi.Monetization.LeaveApplicationEventArgs' already contains a definition for 'p0' 
Error   68  The type 'Com.Inmobi.Monetization.LeaveApplicationEventArgs' already contains a definition for 'P0' 

how should we fix it? or is there a another way to do it?


Solution

  • fix them like these below?

    Metadata.xml

    <attr path="/api/package[@name='com.inmobi.androidsdk']/class[@name='AdRequestFailedEventArgs']/field[@name='p0']" name="managedName">p0_2</attr>