发现xamarin.android绑定超过16个参数

发现xamarin.android绑定超过16个参数,android,xamarin,binding,xamarin.android,Android,Xamarin,Binding,Xamarin.android,在此绑定项目: 使用vs构建后,将显示错误: 发现超过16个参数,超出了最大参数数 在此处生成输出: 1>------ Rebuild All started: Project: BaiduLBSAndroidSDKBindingV_4_3_2, Configuration: Debug Any CPU ------ 1>JARTOXML : Java HotSpot(TM) 64-Bit Server VM warning : ignoring option UseSplitVe

在此绑定项目:

使用vs构建后,将显示错误:

发现超过16个参数,超出了最大参数数

在此处生成输出:

1>------ Rebuild All started: Project: BaiduLBSAndroidSDKBindingV_4_3_2, Configuration: Debug Any CPU ------
1>JARTOXML : Java HotSpot(TM) 64-Bit Server VM warning : ignoring option UseSplitVerifier; support was removed in 8.0
1>BINDINGSGENERATOR : warning BG8D00: More than 16 parameters were found, which goes beyond the maximum number of parameters. (in method Init in managed type Com.Baidu.Platform.Comjni.Map.Basemap.JNIBaseMap)
1>BINDINGSGENERATOR : warning BG8103: Class Com.Baidu.Mapapi.Map.WeightedLatLng has invalid base type com.baidu.mapapi.map.l.a.
1>BINDINGSGENERATOR : warning BG8801: Invalid parameter type java.util.Collection<com.baidu.mapapi.map.WeightedLatLng> in method WeightedData in managed type Com.Baidu.Mapapi.Map.HeatMap.Builder.
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1274,19,1274,30): error CS0111: Type 'E' already defines a member called 'GetCHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1281,15,1281,18): error CS0111: Type 'E' already defines a member called 'n_C' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1291,30,1291,31): error CS0111: Type 'E' already defines a member called 'C' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1378,19,1378,30): error CS0111: Type 'E' already defines a member called 'GetDHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1385,15,1385,18): error CS0111: Type 'E' already defines a member called 'n_D' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1395,30,1395,31): error CS0111: Type 'E' already defines a member called 'D' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1552,19,1552,30): error CS0111: Type 'E' already defines a member called 'GetGHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1559,15,1559,18): error CS0111: Type 'E' already defines a member called 'n_G' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1569,30,1569,31): error CS0111: Type 'E' already defines a member called 'G' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1620,19,1620,30): error CS0111: Type 'E' already defines a member called 'GetHHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1627,17,1627,20): error CS0111: Type 'E' already defines a member called 'n_H' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1637,32,1637,33): error CS0111: Type 'E' already defines a member called 'H' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1688,19,1688,30): error CS0111: Type 'E' already defines a member called 'GetIHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1695,15,1695,18): error CS0111: Type 'E' already defines a member called 'n_I' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1705,30,1705,31): error CS0111: Type 'E' already defines a member called 'I' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1756,19,1756,30): error CS0111: Type 'E' already defines a member called 'GetJHandler' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1763,15,1763,18): error CS0111: Type 'E' already defines a member called 'n_J' with the same parameter types
1>D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1773,30,1773,31): error CS0111: Type 'E' already defines a member called 'J' with the same parameter types
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
1>----已启动全部重建:项目:BaiduLBSAndroidSDKBindingV_4_3_2,配置:调试任何CPU------
1> JARTOML:Java热点(TM)64位服务器VM警告:忽略选项UseSplitVerifier;支持在8.0中被删除
1> BINDINGSGENERATOR:警告BG8D00:找到的参数超过16个,超出了最大参数数。(在托管类型Com.Baidu.Platform.Comjni.Map.Basemap.JNIBaseMap中的方法Init中)
1> BINDINGSGENERATOR:警告BG8103:Class Com.Baidu.Mapapi.Map.weightedLatling的基类型Com.Baidu.Mapapi.Map.l.a无效。
1> BINDINGSGENERATOR:警告BG8801:托管类型Com.Baidu.Mapapi.Map.HeatMap.Builder中方法WeightedData中的参数类型java.util.Collection无效。
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1274,191274,30):错误CS0111:类型“E”已使用相同的参数类型定义了名为“GetCHandler”的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1281,151281,18):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_C'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1291,301291,31):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'C'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1378,191378,30):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'GetDHandler'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1385,151385,18):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_D'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1395,301395,31):错误CS0111:类型“E”已使用相同的参数类型定义了名为“D”的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1552,191552,30):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'GetGHandler'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1559,151559,18):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_G'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1569,301569,31):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'G'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1620,191620,30):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'GetHHandler'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1627,171627,20):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_H'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1637,321637,33):错误CS0111:类型“E”已使用相同的参数类型定义了名为“H”的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1688,191688,30):错误CS0111:类型“E”已使用相同的参数类型定义了名为“GetIHandler”的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1695,151695,18):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_I'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1705,301705,31):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'I'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1756,191756,30):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'GetJHandler'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1763,151763,18):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'n_J'的成员
1> D:\TempApps\BaiduLBSAndroidSDKBindingV_4_3_2\BaiduLBSAndroidSDKBindingV_4_3_2\obj\Debug\generated\src\Com.Baidu.Platform.Comapi.Map.E.cs(1773,301773,31):错误CS0111:Type'E'已经使用相同的参数类型定义了名为'J'的成员
=========全部重建:0成功,1失败,0跳过==========

我认为在这种情况下,正确的方法是在Android Studio中创建一个包装器jar,然后您可以绑定到它,它的参数少于16个。16个参数已经有足够的代码气味了。绑定生成器实际根据以下内容进行验证:

我认为这个限制来自Func和Action代理

i、 e

另一种方法是直接使用JN