Ошибка компиляции при попытке связать файл ABBYY RTR SDK.AAR с помощью проекта Xamarin Android Binding - PullRequest
0 голосов
/ 24 октября 2018

Я получаю сообщение об ошибке ниже, когда пытаюсь привязать «abbyy-rtr-sdk-1.0.aar», загруженный из https://rtrsdk.com/#RTR.Android.Online, с помощью проекта привязки Android Xamarin в Visual Studio 2017, перейдя по ссылке 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

Обновление

Шаги, которые я использую, перейдя по ссылке https://docs.microsoft.com/en-gb/xamarin/android/platform/binding-java-library/binding-an-aar

1 Добавить "abbyy-rtr-sdk-1.0.aar »в папке Jars

2 Установите для параметра« Сборка »значение LibraryProjectZip

3 Установите для параметра« Компилировать с помощью версии Android »: Android 4.4 (KitKat) для проекта Binding

4 BuildПроект

Я получаю ошибки выше.

Ниже приведены версии IDE:

Окно 7

Microsoft Visual StudioEnterprise 2017 (2) Версия 15.8.6 VisualStudio.15.Release / 15.8.6 + 28010.2041 Microsoft .NET Framework Версия 4.7.03062

Xamarin 4.11.0.776 Расширение Visual Studio для обеспечения возможности разработки для Xamarin.iOS и Xamarin.Android.

Xamarin Designer 4.15.9 Расширение Visual Studio для включения Xamarin Designerинструменты в Visual Studio.

Шаблоны Xamarin 1.1.116 Шаблоны для создания приложений iOS, Android и Windows с Xamarin и Xamarin.Forms.

Xamarin.Android SDK 9.0.0.19 Xamarin.Android-справочникСборки и поддержка MSBuild.

Xamarin.iOS и Xamarin.Mac SDK 12.0.0.15 Справочные сборки Xamarin.iOS и Xamarin.Mac и поддержка MSBuild.

...