googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.92k stars 1.73k forks source link

Unable to locate DynamiteModule #127

Open ssoliwal opened 8 years ago

ssoliwal commented 8 years ago

I am trying to run OCR after user takes the image in my app, i have converted image from JPG to NV21 but i get the following error:

E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.android.gms.vision.dynamite.ModuleDescriptor" on path: DexPathList[[zip file "/data/app/camera.demo-1/base.apk"],nativeLibraryDirectories=[/data/app/camera.demo-1/lib/arm, /data/app/camera.demo-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

Do i need any other dependencies apart from 'compile 'com.google.android.gms:play-services-vision:9.0.0+''?

liuyl commented 8 years ago

Can you please check your gmscore apk version by going to setting -> Apps -> Google Play Services, and paste the version number here?

ssoliwal commented 8 years ago

9.4.52

Please note, i can run the sample app with no issues.

It's just that when i use the api in my app, it fails with that error.

liuyl commented 8 years ago

You GmsCore version looks good.

And you don't need any other dependencies other than vision. Can you use play-services-vision:9.4.0 instead of 9.0.0? Sample app depends on 9.4.0, so I think worth a try.

PerMagnusH commented 6 years ago

Hi, I had the same problem and I can confirm the error does no longer occur after I used play-services-vision:9.4.0 instead of 9.0.0.

Thanks!

nininea1 commented 5 years ago

we have the same issue , any news ?