Flutter package "just_audio" throws exception - flutter

The exception is [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider).
I implement this package to my sample project and it worked. But when I tried to implement to my official project it throwed above exception. How can I fix it? Thanks a lot

See: "The Dreaded MissingPluginException"
This particular error unfortunately gives poor diagnostic information. It can be caused by adding a plugin to your project in debug mode without restarting the app, it can also be caused when using a plugin that creates a second FlutterEngine and plugin loading within that engine fails because one of the plugins in your dependencies has a bug (and in this case it is almost certainly not the plugin that the actual error identifies), or, as most likely in your case, it can be caused in release builds if you use something like Proguard but you did not add rules to keep whatever symbols it is trying to load (you can confirm this by disabling ProGuard and seeing if it works).
There may still be other as yet unknown causes for this error. It's all a bit messy, but for now, follow the above GitHub issue to see the various causes and solutions different people have discovered for this error.
It may also help to read the MissingPluginException FAQ I created for audio_service which may help to track down potential causes for the error.

Using hot reload or hot restart won't work when you have included a new plugin into. your project.
Do a flutter clean and after that flutter run

After 3 days, I just realised that the exception did not come from just_audio package. It comes from flutter_facebook_login && flutter_facebook_auth packages, maybe because my app didn't register with FB, so that is the reason. Thanks for all supports.

Related

FirebaseException ([cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be correcte

I want to add google machine language kit to my flutter project, when i do try adding the google ml kit this error appears, what could be the problem and how can i fix it?
i tried closing editor/ doing a flutter clean/ and closing my app
i have the latest firebase and firestore.
my initial problem was I used the image label kit at the start, when i tried to do so this appeared
MissingPluginException(No implementation found for method vision#startImageLabelDetector on channel google_mlkit_image_labeler)
so I tried closing the editor and doing a
flutter clean
it did nothing but bring up the other problem which is
FirebaseException ([cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.)
The error that you have encountered initially from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly.
Try to run these steps serially then close your code editor and check again:
flutter clean
flutter pub get
flutter run
When flutter clean is executed and then flutter pub get it will help generate build files again. You can also try to update the plugin version and check.
Find the example app here and similar examples as below:
Missing Plugin exception issue
Missing Plugin exception on implementation
Flutter unhandled exception missing plugin

Error while deploying flutter application on google play store

When deploying a flutter application on Google Play Store the following warning message appears:
Warning
This App Bundle contains native code, and you haven't imported any debugging symbols. We recommend importing a symbol file to help analyze and debug crashes and ANR errors.
That is something coming from the Flutter codebase itself. Its been like that for a long time now and hope the future releases resolve that.
For now, you can simply ignore the warning and proceed with publishing the app.

I am Usign flutter_facebook_auth but It says No implementation found for method login on channel app.meedu/flutter_facebook_auth

Itssays IMPORTANT: When you install this plugin you need to configure the plugin on Android before run the project again . If you don't do it you will have a No implementation found error because the facebook SDK on Android throws an Exception when the configuration is not defined yet and this locks the other plugins in your project. If you don't need the plugin yet please remove or comment it. I didnot get how to configure it
seems you needs to do this
https://facebook.meedu.app/docs/4.x.x/android
Kindly refer to this
https://facebook.meedu.app/

sdkmanager error (Warning: IO exception while downloading manifest)

when I try installing build tools using sdkmanager on window using this command below
C:\all-things-flutter\flutter-installation\android\cmdline-tools\bin>sdkmanager.bat "build-tools;30.0.0" --sdk_root=../
I keep getting this error
Warning: IO exception while downloading manifest
please this is not a duplicate question, cus I didn't find the answer I needed.
this has been bugging me for days so how can I get it right
So since I could not get an answer after 8 months, I have decided to share how I did it and other kinds of solutions people have suggested but not from here.
How i did it
I downloaded android studio (even tho i was not going to use it), then i use android studio to download the recommended SDK i will need, after that i added the SDK folder path to my system variable, that way i can continue the flutter installation and run flutter doctor, which did ditect my SDK path.
Other people Suggesttion
From my research online, I saw people saying that you need a much slower internet connection because if your internet connection is faster, it will skip some downloads, which can cause the SDK to not work well.
but my response to that is "yer good luck with that".

cannot find symbol (Location location) - Flutter

I have been successfully running my project in an emulator until I encountered this error. I have not installed any package I know of that will cause this error. I have searched online in an attempt to get a solution for it but all my effort has proven futile.
First of Fall, did you install dart and setup check not then install and setup environment for that and check because I have found the same issue when I plugging the flutter.
I had installed a package (places_service) that executes Geolocator files whenever the application is initiated. That was the cause. If anyone is facing such an issue, take a look at your packages and test them one after the other.