I have a .aar library that I am trying to use in Xamarin. most of the components work perfectly however one interface is completely missing
In the binding library build in debug I found the following
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewFragment._1.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewFragment._2.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewFragment._3.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewFragment.ICameraCallback.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewFragment.CameraOrientationDetector.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewRfFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewRfFragment._1.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewRfFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewRfFragment._2.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewRfFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewRfFragment._3.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewRfFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewRfFragment.ICameraCallback.
1>BINDINGSGENERATOR : warning BG8604: top ancestor FaceViewRfFragment not found for nested type Com.Truesen.Face.Entrance.Fragment.FaceViewRfFragment.CameraOrientationDetector.
ICameraCallback is the interface that I need, what can I do to get the interface to generate correctly ? or how can I add it manually
Answers
Based on your description, we are having a hard time finding out what the problem is. Can you share your steps? And what
.aar
libraries have you used?Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
Here is the https://drive.google.com/file/d/1ibfvjws26PesBxjojB_UNyWYiFf0yKqK/view?usp=sharing to the .aar I am using.
The steps that I have followed is the steps in the https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-an-aar
New Project
Add File to Jars folder in Project (as LibraryProjectZip)
Build Project
Create new Android App.
Add reference to the Project
Called the following methods and all worked
Need to add the following method
@Override
public void onCameraFrame(byte[] nv21Data, boolean isBackCam, int cameraOrientation, int w, int h) but to use it I need to inherit the interface ICameraCallback which doesn't generate and gives the above error in the Binding Library Build process
O gosh, I copied the wrong link into the post.
Here correct link to the .aar
https://drive.google.com/file/d/1ibfvjws26PesBxjojB_UNyWYiFf0yKqK/view?usp=sharing