abbyy / MobileCapture.ReactNative

ABBYY Mobile Capture SDK ReactNative module
3 stars 1 forks source link

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

Open struginskij opened 2 years ago

struginskij commented 2 years ago

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?

Savuelo commented 2 years ago

Same issue