Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Cannot find symbol error in the newest version (1.0.4) of react-native-abbyy-mobile-capture  #20

@struginskij

Description

@struginskij

Hello, I've encountered an error while building the android application in react-native. I got this error:


Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
472 actionable tasks: 445 executed, 27 up-to-date
Note: /node_modules/@intercom/intercom-react-native/android/src/main/java/com/intercom/reactnative/IntercomEventEmitter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /node_modules/@intercom/intercom-react-native/android/src/main/java/com/intercom/reactnative/IntercomModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /node_modules/mixpanel-react-native/android/src/main/java/com/mixpanel/reactnative/MixpanelReactNativeModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:8: error: cannot find symbol
import com.abbyy.mobile.rtr.TextCapture.CharInfo;
                                       ^
  symbol:   class CharInfo
  location: interface TextCapture
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:10: error: cannot find symbol
import com.abbyy.mobile.rtr.TextCapture.TextLine;
                                       ^
  symbol:   class TextLine
  location: interface TextCapture
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:82: error: cannot find symbol
	private static JSONObject getTextLine( TextLine textLine ) throws JSONException
	                                       ^
  symbol:   class TextLine
  location: class TextRecognitionResult
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:99: error: cannot find symbol
	private static JSONObject getCharInfo( CharInfo charInfo ) throws JSONException
	                                       ^
  symbol:   class CharInfo
  location: class TextRecognitionResult
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:125: error: cannot find symbol
	private static List<String> getTextLineStrings( TextLine[] textLines )
	                                                ^
  symbol:   class TextLine
  location: class TextRecognitionResult
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:74: error: cannot find symbol
		for( TextLine textLine : textBlock.TextLines ) {
		     ^
  symbol:   class TextLine
  location: class TextRecognitionResult
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:91: error: cannot find symbol
		for( CharInfo charInfo : textLine.CharInfo ) {
		     ^
  symbol:   class CharInfo
  location: class TextRecognitionResult
/node_modules/react-native-abbyy-mobile-capture/android/src/main/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java:128: error: cannot find symbol
		for( TextLine textLine : textLines ) {
		     ^
  symbol:   class TextLine
  location: class TextRecognitionResult
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-abbyy-mobile-capture:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Downgrading a library to 1.0.3 resolved the issue and the app launched correctly. Does anybody have an idea what can be a cause of this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions