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

(node:18840) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output: #34

Open
renukaki opened this issue Dec 31, 2017 · 0 comments

Comments

@renukaki
Copy link

renukaki commented Dec 31, 2017

When tried to use tesseractPlugin, getting below error while running the project. even I am not able to build the project using - ionic cordova build android

Build file '...\platforms\android\build.gradle' line: 33

(node:18840) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred evaluating root project 'android'.

Could not find method compile() for arguments [com.rmtheis:tess-two:6.1.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Steps followed:-
Download or clone the cordova-plugin-tesseract and install it
$ git clone https://github.com/gustavomazzoni/cordova-plugin-tesseract
$ ionic plugin add path-to-your/cordova-plugin-tesseract

Refresh platform folders
$ ionic platform rm android
$ ionic platform add android

// Follow all gustavomazzoni steps, but 2.3
2.3 Edit your-project/platforms/android/build.gradle file and add 'tess-two' like this

Original Recommantion at original tess-two github (https://github.com/rmtheis/tess-two) is

dependencies {
// SUB-PROJECT DEPENDENCIES END
//compile 'com.rmtheis:tess-two:8.0.0' // tried with this also
compile 'com.rmtheis:tess-two:6.1.1'
}

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

1 participant