嗨,我想插入abbyy插件和sdk以便在本机应用程序中包含ORC,因此我遵循了本指南: https://www.youtube.com/watch?v=o4lnQQ8SYfM 和 https://github.com/abbyysdk/RTR-SDK.Cordova
当我去做ionic cordova build android命令时,出现此错误:
:app:mergeDebugResources UP-TO-DATE
:app:createDebugCompatibleScreenManifests UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:javaPreCompileDebug UP-TO-DATE
C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\activities\DataCaptureActivity.java:137: error: cannot find symbol
for( IDataCaptureService.TextLine line : field.Components ) {
^
symbol: class TextLine
location: interface IDataCaptureService
C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\surfaces\DataCaptureSurfaceView.java:46: error: cannot find symbol
for( IDataCaptureService.TextLine component : field.Components ) {
^
symbol: class TextLine
location: interface IDataCaptureService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\RtrPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:app:compileDebugJavaWithJavac FAILED
27 actionable tasks: 1 executed, 26 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
cmd: Command failed with exit code 1 Error output:
C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\activities\DataCaptureActivity.java:137: error: cannot find symbol
for( IDataCaptureService.TextLine line : field.Components ) {
^
symbol: class TextLine
location: interface IDataCaptureService
C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\surfaces\DataCaptureSurfaceView.java:46: error: cannot find symbol
for( IDataCaptureService.TextLine component : field.Components ) {
^
symbol: class TextLine
location: interface IDataCaptureService
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Luca\Desktop\OCR\OCR\platforms\android\app\src\main\java\com\abbyy\mobile\rtr\cordova\RtrPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
PS C:\Users\Luca\Desktop\OCR\OCR>
我如何解决此问题,请联系他们无法给我解决方案的支持, 我还尝试过使用@ 6.0.0和@ 7.0.0更改我尝试过的android版本