Open IanDsouza opened 6 years ago
I have the same issue... You had it since Nov 2017! Why is the developer not commenting on this issue??
Still have the problem above... anybody who has an idea?
I still have this error in my project as well. Have you found any solution for this? I will appreciate the help so much.
Hi valeriesalvador I dropped the framework and started using google vision API for text recognition instead. Much easier, than a project which is not maintained.
Hey Please help me out I am getting the following error. I have follow all the steps what was have given.
Error :
symbol: class IntRange location: class JpegIO C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pixa.java:359: error: cannot find symbol public boolean getBoxGeometry(int index, @Size(min=4) int[] dimensions) { ^ symbol: class Size location: class Pixa C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Rotate.java:106: error: cannot find symbol public static Pix rotateOrth(Pix pixs, @IntRange(from=0, to=3) int quads) { ^ symbol: class IntRange location: class Rotate C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:508: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:533: error: cannot find symbol
symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:556: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:577: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:593: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:753: error: cannot find symbol
symbol: class WorkerThread location: class TessBaseAPI 36 errors :tess-two:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':tess-two:compileReleaseJavaWithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 27.049 secs Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pix.java:20: error: package android.support.annotation does not exist import android.support.annotation.ColorInt; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pix.java:21: error: package android.support.annotation does not exist import android.support.annotation.Size; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Binarize.java:19: error: package android.support.annotation does not exist
import android.support.annotation.FloatRange; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Box.java:20: error: package android.support.annotation does not exist import android.support.annotation.Size; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Boxa.java:20: error: package android.support.annotation does not exist import android.support.annotation.Size; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Constants.java:19: error: package android.support.annotation does not exis t import android.support.annotation.IntDef; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Constants.java:56: error: cannot find symbol @IntDef({L_INSERT, L_COPY, L_CLONE}) ^ symbol: class IntDef location: class Constants C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Constants.java:79: error: cannot find symbol @IntDef({L_SORT_INCREASING, L_SORT_DECREASING}) ^ symbol: class IntDef location: class Constants C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Constants.java:89: error: cannot find symbol @IntDef({L_SORT_BY_X, L_SORT_BY_Y, L_SORT_BY_WIDTH, L_SORT_BY_HEIGHT, L_SORT _BY_MIN_DIMENSION, ^ symbol: class IntDef location: class Constants C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Edge.java:19: error: package android.support.annotation does not exist import android.support.annotation.IntDef; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Edge.java:38: error: cannot find symbol @IntDef({L_HORIZONTAL_EDGES, L_VERTICAL_EDGES, L_ALL_EDGES}) ^ symbol: class IntDef location: class Edge C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\JpegIO.java:21: error: package android.support.annotation does not exist import android.support.annotation.IntRange; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\MorphApp.java:19: error: package android.support.annotation does not exist
import android.support.annotation.IntDef; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\MorphApp.java:38: error: cannot find symbol @IntDef({L_TOPHAT_BLACK, L_TOPHAT_WHITE}) ^ symbol: class IntDef location: class MorphApp C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pixa.java:20: error: package android.support.annotation does not exist import android.support.annotation.Size; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Rotate.java:19: error: package android.support.annotation does not exist import android.support.annotation.IntRange; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:22: error: package android.support.annotation does not ex ist import android.support.annotation.IntDef; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:23: error: package android.support.annotation does not ex ist import android.support.annotation.WorkerThread; ^ C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:60: error: cannot find symbol @IntDef({PSM_OSD_ONLY, PSM_AUTO_OSD, PSM_AUTO_ONLY, PSM_AUTO, PSM_SINGLE _COLUMN, ^ symbol: class IntDef location: class PageSegMode C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:124: error: cannot find symbol @IntDef({OEM_TESSERACT_ONLY, OEM_CUBE_ONLY, OEM_TESSERACT_CUBE_COMBINED, OEM _DEFAULT}) ^ symbol: class IntDef location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:151: error: cannot find symbol @IntDef({RIL_BLOCK, RIL_PARA, RIL_TEXTLINE, RIL_WORD, RIL_SYMBOL}) ^ symbol: class IntDef location: class PageIteratorLevel C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pix.java:130: error: cannot find symbol public boolean getDimensions(@Size(min=3) int[] dimensions) { ^ symbol: class Size location: class Pix C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pix.java:302: error: cannot find symbol public void setPixel(int x, int y, @ColorInt int color) { ^ symbol: class ColorInt location: class Pix C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Binarize.java:124: error: cannot find symbol @FloatRange(from=0.0, to=1.0) float scoreFraction) { ^ symbol: class FloatRange location: class Binarize C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Binarize.java:190: error: cannot find symbol public static Pix sauvolaBinarizeTiled(Pix pixs, int whsize, @FloatRange(fro m=0.0) float factor, ^ symbol: class FloatRange location: class Binarize C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Box.java:190: error: cannot find symbol public boolean getGeometry(@Size(min=4) int[] geometry) { ^ symbol: class Size location: class Box C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Boxa.java:121: error: cannot find symbol public boolean getGeometry(int index, @Size(min=4) int[] geometry) { ^ symbol: class Size location: class Boxa C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\JpegIO.java:64: error: cannot find symbol public static byte[] compressToJpeg(Pix pixs, @IntRange(from=0, to=100) int quality, ^ symbol: class IntRange location: class JpegIO C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Pixa.java:359: error: cannot find symbol public boolean getBoxGeometry(int index, @Size(min=4) int[] dimensions) { ^ symbol: class Size location: class Pixa C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\leptonica\an droid\Rotate.java:106: error: cannot find symbol public static Pix rotateOrth(Pix pixs, @IntRange(from=0, to=3) int quads) { ^ symbol: class IntRange location: class Rotate C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:508: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:533: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:556: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:577: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:593: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI C:\Users\HP\tesseract\platforms\android\tess-two\src\com\googlecode\tesseract\an droid\TessBaseAPI.java:753: error: cannot find symbol @WorkerThread ^ symbol: class WorkerThread location: class TessBaseAPI 36 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':tess-two:compileReleaseJavaWithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
[ERROR] An error occurred while running cordova build android (exit code 1).