NativeScript - нужен плагин для Scandit - PullRequest
0 голосов
/ 21 апреля 2020

Я пытаюсь интегрировать решение Scandit BarcodeCapture (https://www.scandit.com/developers/) в мой проект, поэтому я пытаюсь создать для этого плагин NativeScript. Я следовал инструкциям (https://docs.nativescript.org/plugins/building-plugins), чтобы создать плагин, используя git клон https://github.com/NativeScript/nativescript-plugin-seed, и это сработало правильно.

Я скопировал 2 (ScanditBarcodeCapture.aar, ScanditCaptureCore.aar) библиотеки aar находятся в папке src \ platform \ android и попытались запустить это на моем устройстве android, и оно пытается открыть демо-приложение, но затем сразу же закрывает его. Ниже приводится вывод, который выдает мне Sidekick:

[20-04-21 04:35:32.712] Build started.  
[20-04-21 04:35:37.394] (CLI) Found peer TypeScript 3.4.5  
[20-04-21 04:35:53.290] (CLI) You are using the '--no-bundle' flag which is switching to the Legacy Workflow.  
[20-04-21 04:35:53.290] (CLI) With the upcoming NativeScript 6.0 the Webpack workflow will become the only way of building apps.  
[20-04-21 04:35:53.290] (CLI) More info about the reasons for this change and how to migrate your project can be found in the link below:  
[20-04-21 04:35:53.290] (CLI) https://www.nativescript.org/blog/the-future-of-building-nativescript-apps  
[20-04-21 04:35:54.646] (CLI) Preparing project...  
[20-04-21 04:36:32.479] (CLI) Built aar for nativescript-f10bcv1  
[20-04-21 04:36:33.916] (CLI) Project successfully prepared (Android)  
[20-04-21 04:36:33.928] (CLI) You are using the '--no-bundle' flag which is switching to the Legacy Workflow.  
[20-04-21 04:36:33.928] (CLI) With the upcoming NativeScript 6.0 the Webpack workflow will become the only way of building apps.  
[20-04-21 04:36:33.928] (CLI) More info about the reasons for this change and how to migrate your project can be found in the link below:  
[20-04-21 04:36:33.928] (CLI) https://www.nativescript.org/blog/the-future-of-building-nativescript-apps  
[20-04-21 04:36:36.303] (CLI) Skipping prepare.  
[20-04-21 04:36:36.303] (CLI) Building project...  
[20-04-21 04:36:36.305] (CLI) Gradle build...  
[20-04-21 04:36:38.038] (CLI) + setting applicationId  
[20-04-21 04:36:38.538] (CLI) + applying user-defined configuration from C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\app\App_Resources\Android\app.gradle
[20-04-21 04:36:38.539] (CLI) Applying settings from C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\app\App_Resources\Android\settings.json  
[20-04-21 04:36:38.539] (CLI)    + using support library version 28.0.0  
[20-04-21 04:36:38.539] (CLI)    + adding nativescript runtime package dependency: nativescript-optimized-with-inspector  
[20-04-21 04:36:38.539] (CLI)    + adding aar plugin dependency: C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\node_modules\nativescript-f10bcv1\platforms\android\nativescript_f10bcv1.aar  
[20-04-21 04:36:38.541] (CLI) + adding aar plugin dependency: C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\node_modules\nativescript-f10bcv1\platforms\android\ScanditBarcodeCapture.aar  
[20-04-21 04:36:38.541] (CLI)    + adding aar plugin dependency: C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\node_modules\nativescript-f10bcv1\platforms\android\ScanditCaptureCore.aar  
[20-04-21 04:36:38.541] (CLI)    + adding aar plugin dependency: C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar  
[20-04-21 04:36:42.997] (CLI) Project successfully built.  
[20-04-21 04:36:43.265] (CLI) Installing on device R58MB5VLT4P...  
[20-04-21 04:36:52.656] (CLI) Successfully installed on device with identifier 'R58MB5VLT4P'.  
[20-04-21 04:37:54.323] (CLI) Unable to apply changes on device: R58MB5VLT4P. Error is: Socket connection timed out..  
[20-04-21 04:37:54.325] Error detected during LiveSync on R58MB5VLT4P for C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo. Error: Socket connection timed out.**  
[20-04-21 04:37:54.329] Stopped LiveSync on R58MB5VLT4P for C:\F10\ePOD\NativeScript\nativescript-f10-v1\demo.  

Может кто-нибудь сказать, что мне не хватает?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...