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

Local module descriptor class for com.google.android.gms.vision.dynamite not found. #164

Open scottyyih opened 7 years ago

scottyyih commented 7 years ago

On my device, face tracking fails with errors: W/DynamiteModule( 1417): Local module descriptor class for com.google.android.gms.vision.dynamite not found. I/DynamiteModule( 1417): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801 I/DynamiteModule( 1417): Selected remote version of com.google.android.gms.vision.dynamite, version >= 801 W/DynamiteModule( 1417): Local module descriptor class for com.google.android.gms.vision.dynamite not found. I/DynamiteModule( 1417): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801 I/DynamiteModule( 1417): Selected remote version of com.google.android.gms.vision.dynamite, version >= 801 D/CameraHardware( 207): CameraHardware::previewThread: posting preview frame...

liuyl commented 7 years ago

Hi. The "Local module descriptor class for com.google.android.gms.vision.dynamite not found" is benign, it has nothing to do with if your detector is operational or not. That's why it's a warning instead of error.

Can you check if your device is at low storage? That's the most common reason why detector doesn't work.

scottyyih commented 7 years ago

Thank you for your reply. But my device still has 1.57GB free space. It looks like that the module com.google.android.gms.vision.dynamite:801 need to be downloaded remotely. And no internet access on my device

wanamr87 commented 7 years ago

My device

dwmolina commented 7 years ago

Hi scottyyih.

Have you resolved the problem? I'm getting it too.

Let me know if you resolved it, please.

I'm trying to run the barcode reader app in my Xperia Z2, Android 6.0.1:

W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found. I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801 I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 801 W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found. I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801 I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 801 D/Camera: app passed NULL surface D/BarcodeMain: No barcode captured, intent data is null

liuyl commented 7 years ago

Hi scottyyih.

The "remote" in this log message doesn't mean "cloud", it means Google Play Service which is already installed on your device. If your device doesn't have internet connection, then that's the reason. The API does a download at the first time it is used.

yinguobing commented 7 years ago

Establishing an internet connection successfully solved my problem.

NalediMadlopha commented 7 years ago

Hi there, I am getting this issue in my face detector app. Does anyone know what's the cause of it? Except the internet connection how can I resolve this issue because my device is connected to the internet when I get this issue?

TThana commented 7 years ago

I/Vision: libocr.so library load status: false Local module descriptor class for com.google.android.gms.vision.dynamite not found.

kruyvanna commented 7 years ago

Can't get it to work.

07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found. 07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1101 07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 1101 07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader I/Vision: Loading library libbarhopper.so 07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader I/Vision: libbarhopper.so library load status: false 07-08 16:36:29.168 4642-4642/com.google.android.gms.samples.vision.barcodereader W/NativeBarcodeDetectorHandle: Native barcode detector not yet available. Reverting to no-op detection.

Using vision api compile 'com.google.android.gms:play-services-vision:11.0.2'

Google Play Service installed 11.0.55

Internet Connection is available Free space is 2.76GB

kruyvanna commented 7 years ago

It worked by Clear All Data Wasted 4 hours :(

vasudha1997 commented 7 years ago

Hi there, I am getting an issue with Google play store. Although I have installed Google pay services...my code is not working with an error that version is null. W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found. E/ActivityThread: Failed to find provider info for com.google.android.gms.chimera W/DynamiteModule: Failed to retrieve remote module version. W/GooglePlayServicesUtil: Google Play Store is missing. I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:0 E/FaceNativeHandle: Error creating remote native handle com.google.android.gms.dynamite.DynamiteModule$zzc: No acceptable module found. Local version is 0 and remote version is 0. at com.google.android.gms.dynamite.DynamiteModule.zza(Unknown Source) at com.google.android.gms.internal.fb.zzDR(Unknown Source) at com.google.android.gms.vision.face.internal.client.zza.(Unknown Source) at com.google.android.gms.vision.face.FaceDetector$Builder.build(Unknown Source) at com.example.vasudha.facedetection.MainActivity$1.onClick(MainActivity.java:55) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19749) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) W/FaceNativeHandle: Native handle not yet available. Reverting to no-op handle. W/System.err: android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms W/System.err: at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:114) W/System.err: at com.example.vasudha.facedetection.MainActivity$1.onClick(MainActivity.java:60) W/System.err: at android.view.View.performClick(View.java:4756) W/System.err: at android.view.View$PerformClick.run(View.java:19749) W/System.err: at android.os.Handler.handleCallback(Handler.java:739) W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err: at android.os.Looper.loop(Looper.java:135) W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5221) W/System.err: at java.lang.reflect.Method.invoke(Native Method) W/System.err: at java.lang.reflect.Method.invoke(Method.java:372) W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) D/*abcd: Google Play Store version is null W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found. W/GooglePlayServicesUtil: Google Play Store is missing. I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:0 E/FaceNativeHandle: Error creating remote native handle com.google.android.gms.dynamite.DynamiteModule$zzc: No acceptable module found. Local version is 0 and remote version is 0. at com.google.android.gms.dynamite.DynamiteModule.zza(Unknown Source) at com.google.android.gms.internal.fb.zzDR(Unknown Source) at com.google.android.gms.internal.fb.isOperational(Unknown Source) at com.google.android.gms.vision.face.FaceDetector.isOperational(Unknown Source) at com.example.vasudha.facedetection.MainActivity$1.onClick(MainActivity.java:67) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19749) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) V/RenderScript: 0xa5b58c00 Launching thread(s), CPUs 2 Application terminated.

Alex13832 commented 7 years ago

Restarting Android Studio worked for me. This problem usually occur when I try a new emulator.

heru762004 commented 6 years ago

It happen only in certain phone. I think its google play service bug. I resolved by remove camera permission and re enter the application and give camera permission again.

ghost commented 6 years ago

Had similar problem. Loading app onto device, app runs, but google-vision not functioning. Deleting the app, doing a "Rebuild" in Android Studio then re-deploying onto device fixed the issue for me.

arshadzya commented 6 years ago

04-20 11:53:04.462 1474-1481/com.mypackage.appName I/art: Thread[2,tid=1481,WaitingInMainSignalCatcherLoop,Thread*=0xb70a7528,peer=0x32c2a0a0,"Signal Catcher"]: reacting to signal 3 04-20 11:53:04.952 1474-1481/com.mypackage.appName I/art: Wrote stack traces to '/data/anr/traces.txt' 04-20 11:53:10.512 1474-1474/com.mypackage.appName W/ResourcesManager: getTopLevelResources: com.mypackage.appName for user 0 04-20 11:53:10.622 1474-1474/com.mypackage.appName I/CrashlyticsCore: Initializing Crashlytics 2.6.0.22 04-20 11:53:10.652 1474-2152/com.mypackage.appName W/ResourcesManager: getTopLevelResources: com.google.android.gms for user 0 04-20 11:53:10.652 1474-2152/com.mypackage.appName W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. 04-20 11:53:10.652 1474-2152/com.mypackage.appName W/ResourcesManager: Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. 04-20 11:53:10.792 1474-1474/com.mypackage.appName I/FA: App measurement is starting up, version: 11020 04-20 11:53:10.792 1474-1474/com.mypackage.appName I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE 04-20 11:53:10.842 1474-1474/com.mypackage.appName I/FA: To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app com.mypackage.appName 04-20 11:53:11.082 1474-1474/com.mypackage.appName I/CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful 04-20 11:53:11.142 1474-2140/com.mypackage.appName I/CrashlyticsCore: Registered Firebase Analytics event listener 04-20 11:53:11.362 1474-1474/com.mypackage.appName I/FirebaseInitProvider: FirebaseApp initialization successful 04-20 11:53:11.382 1474-1474/com.mypackage.appName E/TypefaceUtil: Can not set custom font fonts/roboto_light.ttf instead of serif 04-20 11:53:11.392 1474-2174/com.mypackage.appName W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found. 04-20 11:53:11.392 1474-1474/com.mypackage.appName D/InjectionManager: InjectionManager 04-20 11:53:11.402 1474-1474/com.mypackage.appName D/InjectionManager: fillFeatureStoreMap com.mypackage.appName 04-20 11:53:11.402 1474-1474/com.mypackage.appName I/InjectionManager: Constructor com.mypackage.appName, Feature store :{} 04-20 11:53:11.402 1474-1474/com.mypackage.appName I/InjectionManager: featureStore :{} 04-20 11:53:11.402 1474-2177/com.mypackage.appName I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0 04-20 11:53:11.402 1474-2177/com.mypackage.appName I/DynamiteModule: Selected local version of com.google.android.gms.flags 04-20 11:53:11.412 1474-2177/com.mypackage.appName W/ResourcesManager: getTopLevelResources: com.google.android.gms for user 0 04-20 11:53:11.412 1474-2177/com.mypackage.appName W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. 04-20 11:53:11.412 1474-2177/com.mypackage.appName W/ResourcesManager: Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. 04-20 11:53:11.422 1474-2174/com.mypackage.appName W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.

iaubain commented 6 years ago

Guys, after hours of challenge for me the problem was solved buy Updating Google Play Services to version (12.6.85) and I restarted the device and guess what? The app worked fine. For updating this Google play service I followed this link https://www.androidpit.com/install-google-play-services-apk

eberkheev commented 5 years ago

Check list:

  1. Internet connection Check connection
  2. Storage permissions add android:installLocation="auto" to tag
  3. Metadata add
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" /> <!--version-->
        <meta-data
            android:name="com.google.android.gms.vision.DEPENDENCIES"
            android:value="barcode" /> <!--barcode,face,ocr-->
  4. Insufficient storage Check storage for free space
Fizik2 commented 4 years ago

I had got same problem. All advices of this topic didn't help me. After 4 hours of research I had got a solution for me. I resolved by remove camera permission FOR google play service and re enter the application and give camera permission for google play service again.

aktham0 commented 4 years ago

I have the same problem I tried all solution but not work :/ pleas help me to solve this problem

aktham0 commented 4 years ago

This my Problem : 😣 E/Vision: Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.

Aminnasseri commented 4 years ago

I have the same. my app has worked without any problem until today but these are my errors: 04-11 10:20:16.041 15093-15093/mitofit.com.rapidkit E/Vision: Error loading module com.google.android.gms.vision.barcode optional module true: gg: No acceptable module found. Local version is 0 and remote version is 0. 04-11 10:20:16.041 15093-15093/mitofit.com.rapidkit I/Vision: Request download for engine barcode is a no-op because rate limiting 04-11 10:20:16.041 15093-15093/mitofit.com.rapidkit E/QREader: Barcode recognition libs are not downloaded and are not operational

xzec commented 4 years ago

I'm experiencing this error when trying to implement firebase ml vision - text recognition.

E/Vision : Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.

I tried all recommended solutions. Any progress on this?

miladrashidizade commented 4 years ago

hello My problem is as follows and I can not use OCR to read the text! Can anyone help me? Local module descriptor class for com.google.android.gms.vision.dynamite.ocr not found. I/DynamiteModule(27014): Considering local module com.google.android.gms.vision.dynamite.ocr:0 and remote module com.google.android.gms.vision.dynamite.ocr:0 W/DynamiteModule(27014): Local module descriptor class for com.google.android.gms.vision.ocr not found. I/DynamiteModule(27014): Considering local module com.google.android.gms.vision.ocr:0 and remote module com.google.android.gms.vision.ocr:0 E/Vision (27014): Error loading optional module com.google.android.gms.vision.ocr: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0. W/DynamiteModule(27014): Local module descriptor class for com.google.android.gms.vision.dynamite.ocr not found. I/DynamiteModule(27014): Considering local module com.google.android.gms.vision.dynamite.ocr:0 and remote module com.google.android.gms.vision.dynamite.ocr:0 W/DynamiteModule(27014): Local module descriptor class for com.google.android.gms.vision.ocr not found. I/DynamiteModule(27014): Considering local module com.google.android.gms.vision.ocr:0 and remote module com.google.android.gms.vision.ocr:0 E/Vision (27014): Error loading optional module com.google.android.gms.vision.ocr: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0. D/skia (27014): onFlyCompress D/skia (27014): SkJpegCodec::onGetPixels + D/skia (27014): SkJpegCodec::onGetPixels -

PhanithNoch commented 3 years ago

@miladrashidizade I got the same issues did you solve it help, please

Aminnasseri commented 3 years ago

I didnt remember but i think i used vpn 🤔

On Fri, Jan 8, 2021 at 7:43 AM PhaNith notifications@github.com wrote:

@miladrashidizade https://github.com/miladrashidizade I got the same issues did you solve it help, please

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/googlesamples/android-vision/issues/164#issuecomment-756535113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOBKKJYM4NSZOE4TLXHTZ3SY2A67ANCNFSM4CZNW73Q .

gyoyen commented 3 years ago

i fixed it this way 1- i added meta-data to AndroidManifest.xml 1 2- i created device containing 'Google Play Service' from AVD Manager. 2 3- i clicked 'Update Google Play Service' of the device and signed in with my google account 3

and work it 4

my dependencies in pubspec.yaml dependencies: flutter: sdk: flutter firebase_core: ^1.0.4 firebase_ml_vision: ^0.12.0+1 image_picker: ^0.7.4

julianwue commented 3 years ago

Check list:

  1. Internet connection Check connection
  2. Storage permissions add android:installLocation="auto" to tag
  3. Metadata add
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" /> <!--version-->
        <meta-data
            android:name="com.google.android.gms.vision.DEPENDENCIES"
            android:value="barcode" /> <!--barcode,face,ocr-->
  1. Insufficient storage Check storage for free space

Had same issue for few weeks. Made all of this steps, and added permission INTERNET. Used barcode and ocr in DEPENDENCIES. After I checked all elements to be set, it worked in Android 10 Emulator with play store and in my real device Android 11.

sina03030 commented 3 years ago

if updating google and other stuff did not work for you it's possible that google does not offer you this service , to make sure that google let your ip use gms service's turn on your vpn for emulator and test it with webcam ( note that google will recognize your ip on real device even with vpn ) , for me it was running perfectly on emulator (with vpn) and not working on real device because i had iran ip ...

hassank185 commented 2 years ago

Sir i Have this problem Please If you have solution Let me Know then :

W/DynamiteModule(17808): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found. I/DynamiteModule(17808): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0 W/ProviderInstaller(17808): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0. I/.group_chat_ap(17808): The ClassLoaderContext is a special shared library. I/.group_chat_ap(17808): The ClassLoaderContext is a special shared library. I/TetheringManager(17808): registerTetheringEventCallback:com.example.group_chat_app V/NativeCrypto(17808): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 295 native methods... W/.group_chat_ap(17808): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (greylist, reflection, allowed) I/ProviderInstaller(17808): Installed default security provider GmsCore_OpenSSL W/ConnectivityManager.CallbackHandler(17808): callback not found for CALLBACK_AVAILABLE message

jlriverob commented 2 years ago

2. android:installLocation="auto"

Quisiera saber si a alguno de ustedes les ha dado este problema, me dice que W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.

mientras tanto mi aplicacion no puede acceder a internet, hasta que activo y desactivo el wifi o activo y desactivo los datos del dispositivo y mi aplicacion comienza a actualizar datos y por ende a tener acceso a internet.

Ya agote todos mis conocimientos porque es algo que venia funcionando muy bien y de un momento a otro se puso en esta situacion y no he podido soucionar.

Si alguno de ustedes les ha dado este problema y si supieron como solucionarlo les estare eternamente agradecido.

Saludos y Gracias

ranaa7 commented 1 year ago

I have this problem, If you have solution Let me know then : W/DynamiteModule( 7762): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found. I/DynamiteModule( 7762): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0 W/ProviderInstaller( 7762): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0. D/ApplicationLoaders( 7762): Returning zygote-cached class loader: /system/framework/android.hidl.base-V1.0-java.jar D/ApplicationLoaders( 7762): Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar D/ApplicationLoaders( 7762): Returning zygote-cached class loader: /system/framework/android.hidl.base-V1.0-java.jar I/.cryptocurrenc( 7762): The ClassLoaderContext is a special shared library. I/.cryptocurrenc( 7762): The ClassLoaderContext is a special shared library. I/chatty ( 7762): uid=10135(com.example.cryptocurrency) AsyncTask #1 identical 1 line I/.cryptocurrenc( 7762): The ClassLoaderContext is a special shared library. W/ProviderInstaller( 7762): Failed to report request stats: com.google.android.gms.common.security.ProviderInstallerImpl.reportRequestStats [class android.content.Context, long, long]

BarannUnsal commented 1 year ago

I have this problem:

W/DynamiteModule(11248): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found. I/DynamiteModule(11248): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0 W/ProviderInstaller(11248): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0. I/System.out(11248): [socket]:check permission begin!

sina03030 commented 1 year ago

Use shecan.ir dns to break sanctions

On Fri, Dec 9, 2022, 3:11 PM Baran @.***> wrote:

I have this problem:

W/DynamiteModule(11248): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found. I/DynamiteModule(11248): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0 W/ProviderInstaller(11248): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0. I/System.out(11248): [socket]:check permission begin!

— Reply to this email directly, view it on GitHub https://github.com/googlesamples/android-vision/issues/164#issuecomment-1344202831, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL63BRIUMWFHDUMABNOH6ELWMMLINANCNFSM4CZNW73Q . You are receiving this because you commented.Message ID: @.***>