flutter desktop application "error MSB3073: The command "setlocal " - visual-c++

I was building a flutter desktop app using vs code and all sudden was presented with this error completely unfamiliar with.
anyone with a solution on how to handle this, I appreciate
following is my flutter doctor log:

Open visual studio installer, click on modify, then open Individual components.
Select latest Windows 10 SDK version and install it.
When SDK successfully installed
open Android studio.
flutter clean.
flutter run.
it should work.

Related

Plugin Flutter not working, Android Studio

Flutter is not running on my Android Studio correct, the emulator does not open the Standart beginning App. I believe it is because of some internal mixed up. I reinstalled everything without success. Right now when I run flutter doctor this is shown:
flutter doctor
Can I put the plugins manually in some Folder? Because opening Android Studio and just downloading the plugin does not change anything. Although I can now create flutter Projects and come as far as writing the code but not seeing the app.
Any Response is helpfull!
Your flutter doctor clearly shows that the correct plugins(Dart and Flutter) are not installed. To install the plugins just follow the steps:
File->Settings->Plugins-> Type/ To see options. Here search for flutter.
Install the plugin and restart the Android Studio.
If you face any kind of problem after restarting try doing the following:
File-> Invalidate Caches/ Restart
Based on the Flutter doctor output, your android studio is missing Flutter and Dart Plugins. to install them,
Open Android Studio and open settings and go to plugins and search for Flutter. install it and the Dart plugin. then restart the android studio

Android Studio not showing Chrome as Flutter device

I got a small problem which accured after reinstalling Android Studio:
Android Studio
Android Studio is not showing Chrome as Device for my Flutter Web project, while flutter doctor shows clearly everything is enabled correctly:
Flutter doctor
I can normally run the flutter project on google chrome using the console or VS Code, but Android Studio does not work. I already checked the Flutter and Dart plugin.
I would be glad if someone who maybe had the same issue or knows how to fix this gets back to me!
Best Regards
Clearly it is not the issue with flutter. It is an issue with your Android Studio installation. You can verify the same by navigating to the your project folder in the terminal (or command prompt) and type
flutter run -d Chrome.
NOTE: The above command works only if you are on master, beta or dev branch and you have already enabled your flutter web support by typing
flutter config --enable-web
I noticed that your path to Android Studio as: C:\Program Files\Android\ Android Studio1
It means that during installation the original Android Studio folder is not deleted. A duplicate folder has been created in the same location. Hence the Android sdk location is must be changed as well.
You can solve this by:
Uninstall Android Studio. Delete the folder at the above location. Reinstall Android Studio. Update sdk path in your sdk manager as well as in your environment variable. (recommended).
Update the sdk folder in the sdk manager as well as your environment variables.

Problems with setting up Android Studio with Flutter on Mac

I made my project on Windows computer, now I'm trying to export to ios on friend's Mac. I've been following this tutorial from part 1 all the way to part 5. How to Install and Setup Flutter for App Development on Mac - Part 1. In other words, Xcode is installed, Android Studio with Flutter and dart plugin installed as well. Android Studio recognizes both simulator and plugged iPhone. When I open the project in Android Studio it looks like this:
Note: Both flutter folder and the project folder are located in "exportalex"
Please try to use terminal and hit this: flutter pub get
You need to load all the dependency before run app.
If still you are facing same issue, please run: flutter doctor
Then share screenshot of result.

I can't build or run my flutter app from android studio but it works from the command line

I'm building a flutter app on a mac for the first time. Android studio doesn't provide me any way to build or run the app. The green triangle run button is greyed out, and it doesn't have a spot for me to select my emulator.
If I open an emulator and run the app from the command line it builds and runs just fine. The only issue is that android studio doesn't give me the option to run it at all.
Here's what my android studio looks like
And here's flutter doctor
I'd prefer to not switch environments and to continue being able to develop with android studio, instead of switching to xcode or VScode.
Thanks for any and all help!
The green triangle run button is greyed out for me too in Android Studio but the project can be run from command line using "flutter run".
To enable the run button in Android Studio, go to Settings->Languages & Frameworks->Dart:
Enable Dart support for the project (checkbox)
Set the Dart SDK path (on my machine it was "C:\flutter\bin\cache\dart-sdk")
Select the modules to enable Dart support
Screenshot of Android Studio Dart settings
Open pubspec.yaml in your IDE and click on packages get option
This should fix your problem.

Cannot create flutter project or run flutter project in Android studio. (flutter works fine)

I'm getting into flutter so I followed the install doc on the website and had no issue, installed the flutter and dart plug-ins on both Android Studio and Intelli J. The flutter doctor -v command results in the following
But yet when I try to create a new flutter project in Android Studio a folder is created with the project name but it is empty and I get the following in the event button on the welcome screen.
Error creating project
Flutter create command was unsuccessful
So I decided to create the project manually in gitbash where the create command worked perfectly.
I opened the project in Android Studio and discovered another problem even with the emulator running or phone attached the devices section of the run ribbon displays no device and always says loading in the dropdown when clicked.
So again I opened gitbash and in the project root folder type flutter run and the default flutter test app appeared on the emulator.
In Summary, Android studio can open but not create the project nor can it run it but the project can be run from gitbash on the emulator I launched from Android studio.
BTW: IntelliJ has a similar result when creating a project.
I have no idea what was causing the issue but a fresh install of Git seems to have resolved the issues.

Resources