Flutter: Building with plugins requires symlink support - flutter

I am getting the below error in log whenever I try to install any dependency in pubspec.yaml
Building with plugins requires symlink support.
Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.
exit code 1
In lib folder, there is file named generated_plugin_registrant.dart which is also showing error, might be linked to above log error.
//
// Generated file. Do not edit.
//
// ignore_for_file: lines_longer_than_80_chars
import 'package:firebase_core_web/firebase_core_web.dart';
import 'package:printing/src/printing_web.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
FirebaseCoreWeb.registerWith(registrar);
PrintingPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}

This worked for me:
on Windows 11 go to settings:
Click on Privacy & Security and after, click on for developers option.
On for developers settings, activate the Developer mode option (Install apps from any source...).
Now try to run/build your flutter application with flutter run -d windows or flutter build windows command.

Hey I was having the same problem I just activate the development settings and run again it works for me use the command :
start ms-settings:developers

Installation of some plugins required special allowance.
This requires permission for windows which is available in For Developer.
It is much like Install from unknown source type permission.
How to allow permission:
Search Developer Settings in the start menu and open it. Under developer mode click on Install apps from any source, including loose file.
Run pub-get again and you are good to go.

I'm not sure, how relevant is my answer. I got the same error, but the problem is as follows.
I accidentally change the device to 'Windows machine' instead of my mobile in VS Code.
If you really want to run apps on Windows platform, you can choose other options.

Go to Windows settings. Select Update & Security. On that, select For Developers. In that window, there is an option called Install apps from any source, including loose files on the Developer Mode. Enable that option.

If you feel uncomfortable turning on Developer Mode to allow side loaded apps and you aren't targeting Windows OS, you can avoid doing flutter pub add package_name. Instead, clear out the old package with dart pub remove package_name manually edit your pubspec.yaml with the dependency and do a flutter pub get.

This happens when you are running on flutter 3.0 and above;
The error only occurs when your selected device is Windows OS.
If your are not developing a windows application, you can just change your selected device to your android emulator or your physical mobile phone.
If you are developing a windows application then you need to turn ON developers option on your windows device to allow debugging.

For Windows 10 Go to cmd add this command > start ms-settings:developers
it will appear Settings Window
allow developer mode Allow developer mode

directly go to search of window and search
developer settings
and you will see the
developer mode and make it yes.

First, run the command line interface with run administrator
and then run this command
start ms-settings:developers
pop will come with privacy setting just enable developer mode it.

Related

Unable to launch MongoDB On MacOS Monterey | Error MongoDB Compass” can’t be opened because Apple cannot check it for malicious software

I am unable to use MongoDb Compass on MacOS Monterey With Following Error. I tried every possible solution to resolve it.
ERROR: “MongoDB Compass” can’t be opened because Apple cannot check it for malicious software.
reinstallation of application , Restart machine , Open Anyway Option, Control + click and open from FInder. still MAc is not allowing to launch it and says
“This software needs to be updated. Contact the developer for more information.”enter image description here
Tried following too.
enter image description here
Did try : “MongoDB Compass” can’t be opened because Apple cannot check it for malicious software
None of above worked.
From support.apple.com
Apple can’t check app for malicious software
Using an app that can’t be checked for malicious software might harm
your Mac or compromise your privacy. If you’re certain that the app
you want to use is from a trustworthy source, you can override your
Mac security settings to open it.
In the Finder on your Mac, locate the app you want to open.
Don’t use Launchpad to locate the app.
Control-click the app icon, then choose Open from the shortcut menu.
Click Open.
The app is saved as an exception to your security settings, and you can open it at any time by double-clicking it, just as you do with
any registered app.
Here's How I did it. Finally...
open New Terminal Window -> Run Following
sudo spctl --master-disable
then I got **
Anywhere
** option In system Preferences -> Security & Privacy -> Open Anyway
Then Clicked on Open and it Launched.
Note: Run following command once you open your App to save your machine from malicious Software in future.
sudo spctl --master-enable
Refrence: How to Make Mac Allow Apps Downloaded from Anywhere 2022

Enabling flutter web disables all emulators

When i add flutter web support to a project, any other option like, for ex. launch app on android emulator dissapears(in vs code).
I have not found any sign of trace on official docs about it. It's a bug or there is a way to fix this?
Yes you need to disable web support again to start coding for android/ios. You can do that by this command in your cmd : flutter config --no-enable-web

Uninstalling PWA for development testing (windows)

I installed my PWA on windows through developer's console, and now can't uninstall it to test installing it. I've tried removing service worker from chrome, but it will just get reregistered after I open the PWA through windows (if server is on). When I right click on it and choose uninstall it takes me to windows app and features there's no entry for it, meanwhile the actual shortcut for it surely just leads to chrome with app ID in URL. Trying to install the PWA after everything I've tried will not give me the prompt again to add it to homescreen.
url: makpal.now.sh
screen:
The PWA apps reside in apps menu chrome://apps/ of chrome, and quite possibly exclusively under a different tab (a grayish second bar at the bottom of window), which is where you'd get the option to delete them that works.
EASY STEPS to Remove (uninstall) PWA App on Desktop:
1) Open Chrome Browser
2) Click > Apps button
3) Right click > App you want to remove
4) Select > Remove from Chrome... > Remove.
5) App gone. :)
On Mobile: drag to trashcan.
If you installed PWA using chrome then paste below in chrome URL bar and hit enter:
chrome://apps
Right click on desired app and click remove from chrome
Found the list of PWAs here.
C:\Users\{username}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome-Apps
You can delete them from there.
If you have installed to Windows OS using developer console, I assume you have done it using the Chrome menu -> "Install to desktop" (if it comes as "add to desktop, it means your site is not meeting minimum PWA cirteria).
If you have installed in any other way, please be specific on what option you have used. It also contradicts at the end of your question, where you were complaining on "Install prompt" is not coming again for "add to home screen". From all I know, install prompt is not supported in Chrome for Windows yet(I know it works in Chrome for Android).
On your other question on service worker getting re-registered every time you visit, that's how they are supposed to work. They will get registered even if you visit a PWA site(adding to home screen is not needed, it will still register service worker and you get all caching benefits)
You can test all these PWA behaviors for this PWA compliant site -> https://pwa.rocks/
If you need more clarity, please rephrase your question to what exactly is happening and what use case is failing, along with supporting code. A link your your site will be best to debug for the community, if that's publicly available.
The Most useful answer I found: (for chrome)
Open Chrome and go to apps
Right click the PWA you want to remove
Click on "Remove from Chrome..."
I faced the same issue when I was built my first PWA and then when I Open anything else with live server it directed me to my PWA site.
You can also go to you windows control panel \ programs then uninstall from there. ( Referring to the PWA that you installed, not uninstalling the browser )

Debug Apache Cordova with Visual Studio Code

I have a simple question: can I debug Apache Cordova with VS Code?
I have simple installed and created an app(https://cordova.apache.org/) and then opened the app in VS Code, but I cannot debug it.
Thanks!
First, start up the app on your device / emulator / simulator of choice using. See the TACO CLI docs for help with pre-reqs... running is simple.
To debug, for Android 4.4+, you can just use Chrome Dev Tools. See Chrome documentation on Remote Debugging Devices. This works for Cordova apps too.
For iOS, you can do the same thing from Safari on your Mac. Check "Show Develop menu in menu bar" under Preferences.. >Advanced. Then use the Develop menu to find your device and the cordova app running on it. Be sure to go to Settings > Safari > Advanced and enable the "Web Inspector" option on your device as well.
Yes this is very much possible with the vscode-cordova extension. Install this extension to your VSCode and you should be able to debug the app running on iOS/Android device & simluators/emulators. More details on this is available at the VSCode-cordova github readme.
https://github.com/Microsoft/vscode-cordova

Blackberry Ripple Emulator on click start services does nothing

I want to package and launch my BlackBerry Hello World application for WebWorks. For developement, I am using the Ripple emulator. The Ripple simulator says:
The build and deploy services are not currently running, would you like to start them?
After pressing the button Start Services nothing happens and no errors are in the error console.and i also did below steps as i have searched and get this result:
There are two reasons this might be happening. The first is that Chrome is preventing this from happening.
Open the Tools --> Extensions screen in Chrome
Enable 'Developer Mode' checkbox if it isn't already
Are you running Chrome in Incognito mode? If so enable the 'Allow in Incognito' checkbox
The other options is that nodejs is being blocked. If you're on windows, I'd suggest making sure that all user permissisons are enabled to allow you to run Chrome in a way that it can launch external processes.
And After doing all when ever i refresh page it says
The build and deploy services are currently running at localhost:9910. and after loading that page this message not visible but
The build and deploy services are not currently running, would you like to start them? message still there! please explain what's wrong here?
Thanks
This issue is solved by removing Ripple extension version 0.9.15 and installing version 0.9.16 (latest as of this posting), and restarting Chrome. When you click the 'Start Services' button, the console should appear displaying a build service start up message.
http://developer.blackberry.com/bbos/html5/download/
Install the latest beta and it should work!