Flutter || W/DynamiteModule( 4887): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found

Viewed 7035

When I fetch data from Firebase Firestore, data is not shown. And it gives me this problem. Is it related to Firebase or anything else?

W/DynamiteModule( 4887): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
I/DynamiteModule( 4887): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller( 4887): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
W/ProviderInstaller( 4887): Failed to report request stats: com.google.android.gms.common.security.ProviderInstallerImpl.reportRequestStats [class android.content.Context, long, long]
5 Answers

There is no predefined solution to this issue which you are having. However, I suggest you try the following steps:

  • Most of the time, outdated Google Play services can cause these warnings, so the recommendation is to update Google Play services.

  • Make sure that <uses-permissionandroid:name="android.permission.INTERNET"/> is defined in all the three AndroidManifest.xml files that i.e debug/main/profile.

    For some cases, having <usespermissionandroid:name="android.permission.ACCESS_NETWORK_STATE" /> in main AndroidManifest file also helps.

  • If you are running your app on an older device make sure that multi-dex is enabled.

  • It may also happen due to insufficient storage. Hence, clear the app data from settings.

  • Use the latest Firebase plugins.

You may also refer to the Github link.

I have the same problem and haven't found any solution. What I can tell you is that this bug only happens in debug mode.If you run the application with the command flutter run --release -v, this bug won't appear.

I have the same problem android emulator pixel 4 API 31 Flutter

I added this permission

<usespermissionandroid:name="android.permission.ACCESS_NETWORK_STATE" />

it worked the first time but in another build, it did not work.

Add Permission to android/app/src/main/AndroidManifest.xml and then try.

<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

I faced the same problem and wasted a lot of time trying to solve it. It turned out the String of collectionPath in Flutter's code is not match the String of collection in Firestore :(

Related