rmtheis / tess-two

Fork of Tesseract Tools for Android
Apache License 2.0
3.76k stars 1.38k forks source link

NoClassDefFoundError - TessBaseAPI #149

Closed twday closed 8 years ago

twday commented 8 years ago

I have imported the Tesseract API via the gradle compile command you provide in the README but I get this error:

stack=java.lang.NoClassDefFoundError: Failed resolution of: Lcom/googlecode/tesseract/android/TessBaseAPI;

There are no errors in my code. This error only appears at runtime. I have included import com.googlecode.tesseract.android.TessBaseAPI; as suggested by Android Studio.

twday commented 8 years ago

The issue resolved itself for some unknown reason.

Sergioct commented 8 years ago

Today i had the same problem. Clean the project and try it again.