MissingPlginException sqflite flutter - flutter

there is no problem when I run it on my own phone, but when I ctrl f5 with windows and emulator, I got such an error. It worked when I uninstalled the app from the emulator and ran it again. Why did this happen and how do I solve it in windows?

You use this package pub.dev/packages/sqflite that doesn't support Windows application right now.

Related

Android Studio emulator only visible in the task bar

I'm flutter beginner. I run the emulator. but it looks for a moment when you start, and then disappeared. After that, it only appears on the taskbar and cannot be seen by clicking.
I pressed Ctrl+Shift and Right click, but there was no response. The same problem occurred in vscode. Please help..
The problem is not android studio, try reinstalling sdk platform-tools and checking if you have any pending update
Uninstall old emulator and install new emulator and update SDK as well

scrcpy won't run when the flutter app is opened in the IDE

hi guys so i'm using a physical device during development and i also have scrcpy screen share installed. the problem is every-time i open a flutter project in the IDE the scrcpy stops and i don't quite understand what's causing this problem.
i'm using Ubuntu 20.04
Your IDE opens another version of adb. Check the output of scrcpy (run scrcpy-console.bat on Windows).
See https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions

How to fix unable to run Flutter app from VSCode

I was using VSCode and Flutter without any problem in my Ubuntu machine.
Recently, I installed Mircosoft .Net core in my machine.
Later when I try to run a Flutter application by pressing F5, it is trying to download C#.
I'm unable to run Flutter application from VSCode, where as I can run the app from console using the flutter run command.
Guess this is a bug in VSCode. It works after downloading, C# package. It is kind of high-volume btw.

I got an error while running an Android Project

[2011-11-15 22:29:18 - MyAndroid] Failed to install MyAndroid.apk on device 'emulator-5554': device not found
[2011-11-15 22:29:18 - MyAndroid] com.android.ddmlib.InstallException: device not found
What troubleshooting steps have you done?
Has the app been installed on the emulator previously? If so, fully uninstall the app from the emulator first.
Try closing the emulator, and eclipse (if using eclipse). Then restart and try again.
If the issue keeps happening, you may need to delete the 'cache.img' in your AVD directory.
And if that doesn't help, delete the AVD, and recreate it.

Re-installation failed due to different application signatures

I moved my Android project to a laptop and now I get this when I hit Debug. Sounds like this is a bug? This shouldn't happen via Eclipse as far as I know.
Re-installation failed due to different application signatures.
The weirdest thing is this happened after I upgraded sdk/adt and Eclipse to support SDK 2.2 It was working fine earlier, and now it doesn't, so it might be a bug.
It happens because keystores on your laptop and original pc are different. it's called debug.keystrore
and located in %USER_HOME%/.android/ folder. TO be more specific it happens because eclipse tries to push apk with reinstall key. So you have two options
Share debug.keystore between various development pc's
Manually uninstall your apk from device ( using adb )
I also got the same problem and fixed it. you should do the following to fix it,
Uninstall the application from your mobile if you load it
already.
To uninstall goto settings->application->manage application.
Run the application again and choose the mobile
Hope this will help you
After you copy debug.keystore to your PC, you need to rebuild project on PC.
I had the same issue using the Droid emulator. I solved it by uninstalling the package from the application settings in the emulator as you would a normal device. On the next run, it reinstalled and the error went away.
I got the same problem and fixed it by just wiping the user data on the emulator. My guess is that the emulator keeps the project installed unless you wipe the data, so if your new project doesn't match some internal parameters it doesn't like it and won't reinstall it.
I also had the same problem and fixed it by uninstalling the app and reinstall it again.
ah i think i found your answer:
Why does the app signature change in Android after a classpath change?
its changed if you change the classpath
After searching and checking the phone, i came to know that i am currently developing 2nd version of this application which is already downloaded from android market in my phone, now as this app is signed and having different signatures this is throwing the above error.
Now, to resolve this issue, i had just uninstalled the app from mobile and run/install the application again.
I had the same issue with the emulator and i ran the command "adb uninstall TheNameOfPackage". Of course you must first go to the directory where the adb.exe has been installed, usually C:\Program Files\Android\android-sdk\platform-tools, and then run the above command.
For me after I copied all of my keystore files from my machine at home, I had to do a Project->clean. After that it worked perfectly.
When i tried to uninstall the application from my device after this issue occurs, i cannot able to find the app in my device. I don know where it gone. Then i uninstalled using adb,
adb -d uninstall <app package name>
This is the answer who are facing the issue similar to my problem.
I had the same issue.
To fix it I uninstalled the old .apk of the project from my device.
Go to device/emulator Settings -> Apps, find your app and uninstall it.
Or
In Android Studio open tab "Gradle" (on the right side), open:
appName
..appName
...Tasks
....install
.....uninstallAll
and click twice on this task to execute it.
Important note:
If you still get this error after uninstalling, try to Build->Clean Project.
If you still get this error, even if in your device Settings->Apps list you have no this app already, try to Build->Clean Project