我们使用xamarin for android,我们正在尝试将inmobi(inmobi)广告集成到我们的应用程序中,当我们尝试创建Java绑定库时,我们会遇到以下错误。
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'
我们该如何解决?还是有另一种方法可以做到这一点?
答案 0 :(得分:1)
如下所示修复它们?
metadata.xml中
<attr path="/api/package[@name='com.inmobi.androidsdk']/class[@name='AdRequestFailedEventArgs']/field[@name='p0']" name="managedName">p0_2</attr>