khjde1207 / tesseract_ocr

Tesseract OCR for flutter
BSD 3-Clause "New" or "Revised" License
64 stars 31 forks source link

Compile Issue error: cannot find symbol #46

Closed alisabry22 closed 3 months ago

alisabry22 commented 3 months ago

I jave an issue that prevents me from the app starting .

using latest version in pupspec.yaml:

dependencies:
  flutter_tesseract_ocr: ^0.4.25

also defined tessdata folder and files included in it , with tessdata_config.json Issue : /Users/alisabry/.pub-cache/hosted/pub.dev/flutter_tesseract_ocr-0.4.25/android/src/main/java/io/paratoner/flutter_tesseract_ocr/FlutterTesseractOcrPlugin.java:51: error: cannot find symbol

full error stack:

/Users/alisabry/.pub-cache/hosted/pub.dev/flutter_tesseract_ocr-0.4.25/android/src/main/java/io/paratoner/flutter_tesseract_ocr/FlutterTesseractOcrPlugin.java:51: error: cannot find symbol
        final Map<String, String> args = call.argument("args");
              ^
  symbol:   class Map
  location: class FlutterTesseractOcrPlugin
/Users/alisabry/.pub-cache/hosted/pub.dev/flutter_tesseract_ocr-0.4.25/android/src/main/java/io/paratoner/flutter_tesseract_ocr/FlutterTesseractOcrPlugin.java:65: error: package Map does not exist
  for (Map.Entry<String, String> entry : args.entrySet()) {
                  ^
/Users/alisabry/.pub-cache/hosted/pub.dev/flutter_tesseract_ocr-0.4.25/android/src/main/java/io/paratoner/flutter_tesseract_ocr/FlutterTesseractOcrPlugin.java:105: error: cannot find symbol
      baseApi.end();

BUILD FAILED in 38s Error: Gradle task assembleDebug failed with exit code 1

ErsinMandaci commented 3 months ago

I have the same problem, what is the solution?

khjde1207 commented 3 months ago

Fixed in version 0.4.26.

alisabry22 commented 3 months ago

@khjde1207 highly appreciated .. keep good work up.