arrrrny / tesseract_ocr

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

Execution failed for task ':tesseract_ocr:bundleDebugAar'. #36

Open wolfgang-s opened 3 years ago

wolfgang-s commented 3 years ago

When trying to launch my app an android phone or android simulator it cannot compile.

I found this https://stackoverflow.com/questions/67426655/execution-failed-for-task-tesseract-ocrbundledebugaar and this: https://stackoverflow.com/questions/60878599/error-building-android-library-direct-local-aar-file-dependencies-are-not-supp

It suggest multiple solutions, but I don't know how to apply these and I guess this flutter plugin needs some changes.

Build log:

Launching lib/main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

BUILD FAILED in 11s

wolfgang-s commented 3 years ago

I'm using the version from this pull request: https://github.com/arrrrny/tesseract_ocr/pull/35 Maybe it's because of this commit: https://github.com/hasankarli/tesseract_ocr/commit/d7e9cd887eb54ee612c51ab678eaa375682b2ab4

shreyasnahar commented 3 years ago

How to fix Error: Unsupported operation: _Namespace