Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wolfgang-s opened this issue Jul 16, 2021 · 2 comments
Open

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

wolfgang-s opened this issue Jul 16, 2021 · 2 comments

Comments

@wolfgang-s
Copy link

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.

  • What went wrong:
    Execution failed for task ':tesseract_ocr:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :tesseract_ocr project caused this error: /Users/wolfgangsteuer/Documents/flutter-app/flutter/.pub-cache/git/tesseract_ocr-d7e9cd887eb54ee612c51ab678eaa375682b2ab4/android/libs/tesseract4android-release.aar

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 11s

@wolfgang-s
Copy link
Author

wolfgang-s commented Jul 16, 2021

I'm using the version from this pull request:
#35
Maybe it's because of this commit:
hasankarli@d7e9cd8

@shreyasnahar
Copy link

How to fix Error: Unsupported operation: _Namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants