I am trying to incorporate Tesseract libraries into my Android project today.
From what I found, I did the following:
1) Download tess-two from gooogle git, 2) build with NDK 3) put * .so files (armeabi / v7, x86, mips) in / app / main / jniLibs /, 4) pack * .so in a .jar file , put the archive in app / libs / and write the dependency {} on it in the gradle.build file
I use Android Studio, and when I write TessBaseAPI and press Alt + Enter → "add dependency to tess-two module", it automatically writes the import line:
import com.googlecode.tesseract.android.TessBaseAPI;
But when I try to build it, I get
Error: com.googlecode.tesseract.android package does not exist
I am using Android Studio 1.1
source share