ABBYY RTR SDK xamarin support, and getting error binding AAR.

  • 179 Views
  • Last Post 24 October 2018
Ping Pong posted this 23 October 2018

How should I go about creating RTR SDK in Xamarin Android

I get the error below when I try to bind the "abbyy-rtr-sdk-1.0.aar" downloaded from https://rtrsdk.com/#RTR.Android.Online using Xamarin Android Binding project in Visual Studio 2017, by following https://docs.microsoft.com/en-gb/xamarin/android/platform/binding-java-library/binding-an-aar

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0234    The type or namespace name 'IRecognitionContextHolder' does not exist in the namespace 'Com.Abbyy.Mobile.Ocr4' (are you missing an assembly reference?)    AbbyLib    C:\_MyLab\Xamarin\My\OCR\TextRecogniser\AbbyLib\obj\Debug\generated\src\Com.Abbyy.Mobile.Ocr4.IRecognitionManager.cs    481    Active

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0738    'IDataCaptureServiceInvoker' does not implement interface member 'IRecognitionService.ExtendedSettings'. 'IDataCaptureServiceInvoker.ExtendedSettings' cannot implement 'IRecognitionService.ExtendedSettings' because it does not have the matching return type of 'IRecognitionServiceExtendedSettings'.    AbbyLib    C:\_MyLab\Xamarin\My\OCR\TextRecogniser\AbbyLib\obj\Debug\generated\src\Com.Abbyy.Mobile.Rtr.IDataCaptureService.cs    679    Active
Error    CS0738    'ITextCaptureServiceInvoker' does not implement interface member 'IRecognitionService.ExtendedSettings'. 'ITextCaptureServiceInvoker.ExtendedSettings' cannot implement 'IRecognitionService.ExtendedSettings' because it does not have the matching return type of 'IRecognitionServiceExtendedSettings'.    AbbyLib    C:\_MyLab\Xamarin\My\OCR\TextRecogniser\AbbyLib\obj\Debug\generated\src\Com.Abbyy.Mobile.Rtr.ITextCaptureService.cs    681    Active

 

Order By: Standard | Newest | Votes
Diana Khammatova posted this 24 October 2018

Hello! As you probably know, we don't provide support for the projects developed in Xamarin. However, it is technically possible to use mobile RTR in such projects. For example, on the Xamarin Developers portal there are several articles that can be used as a reference on how to link native libraries to the project:
http://developer.xamarin.com/guides/android/advanced_topics/using_native_libraries/ for Android
http://developer.xamarin.com/guides/ios/advanced_topics/native_interop/ for iOS

Ping Pong posted this 24 October 2018

I received the "abbyy-rtr-sdk-1.0.aar" file downloaded from https://rtrsdk.com/#RTR.Android.Online, and tried to bind it by following https://docs.microsoft.com/en-gb/xamarin/android/platform/binding-java-library/binding-an-aar

 

However, the link you provided is for *.so, which I cannot see the file.

 

Can you explain?

Close