gustavomazzoni / cordova-plugin-tesseract

Cordova Plugin for OCR process using Tesseract
77 stars 34 forks source link

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

Open renukaki opened 6 years ago

renukaki commented 6 years ago

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.

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' }