我想在xamarin Android中使用https://www.dsphotoeditor.com/库 . 为此,我创建了一个绑定项目 . 我知道如何创建绑定,我已经为sinch库做了 . 但对于https://www.dsphotoeditor.com/,我无法解决一些错误 . 我已使用以下内容更新了其metdata.xml文件

<attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.focusablelinearlayout']" name="managedName">BindingFocusablelinearlayout</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.imagebrushview']" name="managedName">BindingImagebrushview</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.stickerview']" name="managedName">BindingStickerview</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.touchimageview']" name="managedName">BindingTouchimageview</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.touchimageview']/class[@name='TouchImageView']/method[@name='onConfigurationChanged' and count(parameter)=1 and parameter[1][@type='android.content.res.Configuration']]" name="visibility">protected</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.touchimageview']/class[@name='TouchImageView']/method[@name='onRestoreInstanceState' and count(parameter)=1 and parameter[1][@type='android.os.Parcelable']]" name="visibility">protected</attr>
   <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.touchimageview']/class[@name='TouchImageView']/method[@name='onSaveInstanceState' and count(parameter)=0]" name="visibility">protected</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.simplecropview']/class[@name='CropImageView']/method[@name='onDraw' and count(parameter)=1 and parameter[1][@type='android.graphics.Canvas']]" name="visibility">protected</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.simplecropview']/class[@name='CropImageView']/method[@name='onRestoreInstanceState' and count(parameter)=1 and parameter[1][@type='android.os.Parcelable']]" name="visibility">protected</attr>
  <attr path="/api/package[@name='com.dsphotoeditor.sdk.ui.simplecropview']/class[@name='CropImageView']/method[@name='onSaveInstanceState' and count(parameter)=0]" name="visibility">protected</attr>

添加上述XML中的第1到第4行是因为要删除错误

“命名空间路径不能有类名 . 名称声音错误”

添加第5到第10行 class protected(Reason:By default .Net making public classes so it cause issues in overriding java protected methods)

上面的方法元数据有助于修复一些错误,但它仍然有很多错误 . 下面给出了错误

类BindingImagebrushview.ImageBrushView具有未知的基本类型com.dsphotoeditor.sdk.ui.a.c . 托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中的方法A中的未知返回类型com.dsphotoeditor.sdk.ui.simplecropview.a . 托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中方法A中的未知参数类型com.dsphotoeditor.sdk.ui.simplecropview.b.b . 托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中方法A中的未知参数类型com.dsphotoeditor.sdk.ui.simplecropview.CropImageView.a . 在托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中的方法SetCropMode中的未知参数类型com.dsphotoeditor.sdk.ui.simplecropview.CropImageView.a . 在托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中的方法SetGuideShowMode中的未知参数类型com.dsphotoeditor.sdk.ui.simplecropview.CropImageView.c . 在托管类型Com.Dsphotoeditor.Sdk.UI.Simplecropview.CropImageView中的方法SetHandleShowMode中的未知参数类型com.dsphotoeditor.sdk.ui.simplecropview.CropImageView.c .

使用此库的Android代码https://drive.google.com/open?id=1msStp0MdaGVY8QVXl8ZVpzLrqXoJQoMG