I am in the latest stable release for flutter desktop and have installed Visual Studio 2022 but still the option for "Windows" is not showing.
Do i still need to run the below command in stable release?
flutter config --enable-<windows>-desktop
You need to try its working fine
flutter config --enable-macos-desktop
flutter config --enable-linux-desktop
flutter config --enable-windows-desktop
flutter config --enable-windows-uwp-desktop
Sometimes it needs to press the previous and Then the next button.
Related
I want to migrate my flutter project to my new pc, the android studio and flutter are all set in the new pc. If I make a new flutter project, it works fine, however, if I open the project from my old PC, It cannot detect the flutter library. Any suggestions?
Flutter doctor result
Use this command
flutter clean
flutter pub get
flutter packages get
flutter packages upgrade ( Optional - use if you want to upgrade packages )
Restart Android Studio or VS Code
Hopefully the problem will be solved.
I am working normally with Android Studio developing Flutter projects.
But now, after executing the command flutter doctor -v the output is as follows:
The only issue shown is that Flutter and Dart plugins are not installed, but they are:
Is that a bug only or should I change something in Android Studio?
I am on flutter channel stable, on dev channel the issue is not shown, everything is ok.
You need to setup the path to the Flutter SDK through settings. For detailed steps, you can refer the link attached.
The one that you carried out is enabling the Flutter IDE features.
Installing the plugin will enable the Flutter Specific features in the
Android Studio.
To make the Android studio to support Flutter development you need to set the path to the Flutter SDK in
Settings -> "Languages and Frameworks" -> Flutter -> "Set the path
to Flutter SDK" -> Click Apply.
Restart the Android Studio to make the changes to reflect. After completing the setup, you can run the flutter doctor to confirm that everything is fine.
Windows option is disabled while creating a new Flutter project in IntelliJ IDEA. I've upgraded my Flutter to Flutter 2 stable channel but getting Windows option disabled whereas I've also installed Visual Studio 2019 in my PC.
Here's my Flutter doctor results
Run the following commands
flutter config --enable-windows-desktop
flutter channel dev
flutter upgrade
flutter config --enable-windows-uwp-desktop
flutter doctor
Then as per the instruction of the above command, you may have to install required tools like Visual Studio...
Finally in IntelliJ
New Project -> Select Flutter -> Select SDK Location, Click Next
(Now if you still see Windows is disabled)
Press Back & Then press next... Now, I am seeing it can be enabled.
Even after that if you are not seeing, allow the project to finish without selecting the windows (or try to select web)
Then provide the following command on the project root directory
flutter create --platforms=windows
So, I wanted to try desktop development in Flutter. I went through all steps and successfully enabled desktop support for Flutter using flutter config --enable-linux-desktop in master channel.
Now everytime I create a new project in Flutter, it automatically builds necessary files for Linux Desktop.
I tried running flutter config --disable-linux-desktop, but there is no command like that. How do I disable desktop support?
PS : I don't want to switch to stable channel since I also want to make my apps for Web.
You can disable enabled flags with adding no- prefix to the enable command. For disabling linux desktop flag you can simply run flutter config --no-enable-linux-desktop.
Here are the terminal commands to disable the desktop support for your flutter projects.
macOS:
flutter config --no-enable-macos-desktop
Windows:
flutter config --no-enable-windows-desktop
Linux:
flutter config --no-enable-linux-desktop
New Project with flutter will have these platforms disabled like this
I am able to run the app in android studios but whenever I try in xcode I get a flutter framework not found.
upgrade your flutter by doing
flutter upgrade
and it will upgrade the engine and download necessary tools.
This will even kill flutter daemons.
And run the application again
flutter run
Make sure you open .xcworkspace (and not .xcodeproj in XCode).
Ensure you have 'Flutter.Framework' listed under "Linked Frameworks and Libraries". If not, just drag and drop it from the main project. Like below
I was facing the same error whene I try to archive in Xcode
I fixed it by
flutter upgrade
and
flutter run
I fixed this by switching to the master channel, and switching back to the stable channel. Also remember to run 'flutter upgrade' after switching.
Delete the flutter directory.
Download new flutter
Extract it and put it where you want.
Run the command export PATH="$PATH:`pwd`/flutter/bin"
if the command does not work then specify your path like bellow
export PATH="$PATH: /Users/{your user name}/Documents/src/flutter/bin"
Restart your machine and you are ready to go.
After that - inside your project's ios directory -
delete the .symlink directory
delete the Pods directory
delete the Podfile.lock file
and now run -
flutter clean
flutter packages upgrade
flutter build ios
For me nothing worked except, deleting my flutter files fully and reinstalling.
Use this flutter docs for reinstallation: Flutter Installation Link
I tried everything nothing worked except:-
Flutter upgrade
Flutter run
and boom- Build succeeded!
Please try the following steps:
Delete the flutter SDK
Download the same flutter SDK and re-install it
restart the android studio
It should be worked well.
Fixed by switching branches from beta to master