Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

binding 2 aar files

nielsielolnielsielol NLMember
edited January 2017 in Xamarin.Android

Hi guys,

Ok i've been struggling with this for a while now and i think i already have tried out a lot of possible solutions maybe i've done one of them wrong but i'm out of ideas now. So i'm hoping one of you could help me out here.

I've a project where i wan't to detect beacons those of Lightcurb. They have provide 2 .aar files, i already have an android bindings library project setup with those 2 files with build action libraryprojectzip (as the docs of xamarin told me to). the lighcurbsdk.aar depends on the androidibeaconlibrary.aar. as you can see in the image it cannot find the monitornotifier, rangenotifier etc.

so here is my metadata.xml:

  <add-node path="/api/package/class[implements[@name='java.util.Comparator']]">
    <method name="compare" return="int" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public">
      <parameter name="o1" type="java.lang.Object" />
      <parameter name="o2" type="java.lang.Object" />

<add-node path="/api/package[@name='com.radiusnetworks.ibeacon']/interface[@name='MonitorNotifier']"></add-node>

  <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='dispatch']" />
    <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='response']" />
    <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='responseInt']" />
    <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='responseList']" />
    <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='responseObject']" />
    <remove-node path="/api/package[@name='com.lightcurb.sdk.api.request']/class[@name='LCAPIRequest']/field[@name='responseString']" />


as you can see my <add-node path="/api/package[@name='com.radiusnetworks.ibeacon']/interface[@name='MonitorNotifier']"></add-node> isn't found. What am i doing wrong here? And more importantly how can i fix it?

P.S. The remove-nodes i implemented because of duplicate fields.

Thanks in advance!

Sincerely Niels


Sign In or Register to comment.