I created a Xamarin Binding Project for Android, and generated the Bindings for the .aar file. So far, so good. When I first called a constructor which throws an Exception, a build error occured:
.../XamVideoCaptureReader.java(9,9): Error: error: unreported exception ReaderException; must be caught or declared to be thrown super (p0, p1, p2); (AndroidTest)
On the following code part:
public XamVideoCaptureReader (int p0, com.digimarc.dms.readers.ReaderOptions p1, com.digimarc.dms.readers.image.CaptureFormat p2)
{
super (p0, p1, p2);
...
}
I think the error is pretty self explanatory, but I can't find a way to fix it. The super call has to be wrapped in a try catch, or even better: a throws ReaderException
should be added to the constructor signature.
Has anyone experienced this error before and could solve it? Or is this a bug of Xamarin?