Flutter app keep sending me this on log when restart 'Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.' - flutter

i keep getting this error in my app when i debug my app, the error say
W/DynamiteModule( 6570): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
I/DynamiteModule( 6570): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller( 6570): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
whenever i restart my flutter app. it keep giving me this error, and when i tried to take data from firestore it didn't gave me any. after i go to other page and go back to the original page. the data load and the error gone.
i've been following some of other relate question and there's no helpful answer for that, this what i've been tried earlier
adding <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> to the AndroidManifest.xml at android > App > main > AndroidManifest.xml
tried to do flutter clean and flutter pub get and still didn't solve the problem.
adding this <uses-permission android:name="android.permission.INTERNET"/> to the AndroidManifest.xml and remove it again and still not solve the problem.
i've been check the pubspec.yaml and do dependencies update and still yet there's no sign of the problem been solve.
debug on emulator, and 2 real device still gave me the same problem.
tried to delete the app on device and built it again, and nope
multiDexEnabled true added to app/build.gradle
yep and the issue still there. and the problem only show up when being first open/run. and after i goes to other, it'll comeback to normal.

Related

Error Module 'flutter_secure_storage' not found when try Product ->Build for -> Profiling

well this error occurs to me when I try to make my app in production.
The app is created with flutter and I was able to create the apk for android, but when I try to do it for ios it won't let me.
The file that I am opening is Runner.xcworkspace and the problem is the import of a flutter library, it seems to me that I have to make some kind of connection with the pods.
here is the error, I want to tell you that I do not want to run the app, but to make an installer
The error that occurs when building a release (ie. flutter build ipa) and not when running a debug build is:
/[REDACTED]/ios/Runner/GeneratedPluginRegistrant.m:48:9: fatal error: module
'flutter_secure_storage' not found
#import flutter_secure_storage;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
For me regenerating Podfile in the following way solved the issue:
rm ios/Podfile && flutter build ios
See Closed [ios][release] GeneratedPluginRegistrant.m Module not found
#43986

Flutter Build Error: Execution failed for task ':sms:verifyReleaseResources',A problem occurred evaluating root project 'firebase_auth'

I am creating a simple app that consist of sms retrieving and firebase mobile OTP modules, everything works fine only on app running but could not build apk for output.
Errors:
Execution failed for task ':sms:verifyReleaseResources'.
A problem occurred evaluating root project 'firebase_auth'.
I have no idea for first error, but the second one is most related to firebase_core plugin. but i have added it too. let me know where i made mistakes.
I have tried all possible ways that is, cleaning build and reinstalled the plugins noting works for me.
installed plugins:
sms: ^0.2.4,
firebase_auth: ^0.19.0,
firebase_core: ^0.6.0,

getting error when using the dependency in flutter

when i add dependency to pubspec.yaml files ,in some dependency i get error ,i tried many to resolve it but i can't able to resolve it.
getting this error when using image picker dependency
i tried
flutter clean
restart the pc
reinstall the app
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
Possible solutions to what might occur:
Pay attention to indentation in your pubspec.yaml file.
Make sure that you don't have any error on dependency version.
Make sure that you run flutter pub get after adding dependency
Probably it is not documented that you have to add following permission to Android manifest file:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
Sometimes it might be needed to clean cache and run the project again by using flutter clean && flutter run command on terminal.

Unable to create flutter project

When running flutter create followed by project name, I receive this error:
Error: Error when reading '../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No such file or directory
Running "flutter pub get" in pics...
pub get failed (254; Error: Error when reading
'../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No
such file or directory)
I'm trying to create a new flutter project in xcode. How would I fix this?
'../documents/flutter/bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot': No
such file or directory
It seems like there may be files missing from your Flutter SDK. There should be a file in the Flutter SDK at bin/cache/dart-sdk/bin/snapshots/pub.dart.snapshot but this error suggests it's missing.
The easiest fix may be to delete the bin/cache folder which will cause Flutter to re-download the Dart SDK and other components when you next run flutter. This may take a little while depending on your connection, but is the simplest way to ensure the cache folder is complete. I would suggest closing all IDEs/editors when doing this.
I have same issue but the problem was windows defender at real time detection so the solution was to switch off it then create a project...

Url not resolve on release apk but resovle on debug

My app have to reach a rocket.chat server. When I use VSCode in debug mode is working.
But when I build the app publish in beta version and I test it on the same phone I have the error
SocketException: Failed host lookup: 'xxx.xxxx.xxx' (OS Error: No address associated with hostname, errno = 7)
I checked the AndroidManifest.xml and I have
<uses-permission android:name="android.permission.INTERNET"/>
I cannot understand why is working on debug but not on release.
I found the solution.
There are multiple AndroidManifest.xml
This file is use to build release app and I doesn't have the Internet permission
android/app/src/main/AndroidManifest.xml