如何在xamarin中绑定Wikitude aar文件

时间:2017-10-13 11:23:34

标签: android xamarin xamarin.android wikitude wikitude-sdk

您好我正试图在xamarin中绑定wikitude .aar罚款...我有一些问题

Com.Wikitude.Tracker.IObjectTrackerListener.cs(47,47): Error CS0102: The type 'TargetsLoadedEventArgs' already contains a definition for 'p0' (CS0102) (AarBinding)

Com.Wikitude.Tracker.IObjectTrackerListener.cs(14,14): Error CS0102: The type 'ErrorLoadingTargetsEventArgs' already contains a definition for 'P1' (CS0102) (AarBinding)

我尝试将Metadata.xml用作

<attr path="/api/package[@name='Com.Wikitude.Tracker']/class[@name='ErrorLoadingTargetsEventArgs']/field[@name='p0']" name="managedName">p0_2</attr>

但它现在正在处理任何建议吗?

1 个答案:

答案 0 :(得分:0)

您好我能够解决这个问题......对其他人可能有所帮助

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
          <attr path="/api/package[@name='com.wikitude.tracker']/interface[@name='ObjectTrackerListener']/method[@name='onTargetsLoaded']/parameter[1]" name="managedName">tracker</attr> 
           <attr path="/api/package[@name='com.wikitude.tracker']/interface[@name='ObjectTrackerListener']/method[@name='onErrorLoadingTargets']/parameter[1]" name="managedName">tracker</attr>
           <attr path="/api/package[@name='com.wikitude.tracker']/interface[@name='ObjectTrackerListener']/method[@name='onErrorLoadingTargets']/parameter[2]" name="managedName">errorCode</attr> 
           <attr path="/api/package[@name='com.wikitude.tracker']/interface[@name='ObjectTrackerListener']/method[@name='onErrorLoadingTargets']/parameter[3]" name="managedName">errorMessage</attr>  
       <attr path="/api/package[@name='com.pbar.samples']/class[@name='StartActivity']" 
         name="visibility">public</attr>
</metadata>