You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
(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
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.
A problem occurred evaluating root project 'android'.
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'
}
The text was updated successfully, but these errors were encountered: