how to fix this installation error on windows - flutter

I hit a problem very early on in the official tutorial for using Flutter. Specifically, when I run Flutter Doctor I get this error message:
X Downloaded executables cannot execute on the host.
See https://github.com/flutter/flutter/issues/6207 for more information
When I follow that link there is nothing there that looks relevant. (It is mostly about LINUX problems)
Can anyone advise me on what I should do?

Related

Installing flutter: cant find path to sdk-manager

I'm trying to install flutter, but its not working. Flutter doctor gives me the following:
now I can't find the path to my sdkmanager. I'm working on Windows. I tried to do this:
C:\Users\USERNAME\AppData\Local\Android\Sdk --install "cmdline-tools;latest"
But that didn't worked out.
Also I can't find anything helpfull for that in the following folder.
Can someone tell me what to do here? Thank you.
Welcome on your new journey to flutter development!
I had similar issue with the cmdline-tools component missing during installation process. However, following the answers given below for the stackoverflow question solved my issue.
Click here
Answer given here is more specific to your question
If you still see the same error after installing Android SDK command-line tools from Android Studio try running the following command in command prompt:
flutter config --android-sdk "C:\Users\<Replace_with_your_USER_NAME>\AppData\Local\Android\Sdk"
To solve the Android license status unknown just run the mentioned command:
flutter doctor --android-licenses
And tap y thrice to accept the terms.
To solve Visual studio not installed just follow the documentation till step 4 (others are totally optional) https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation?view=msvc-170 and install the free community edition.
Hope this helps! :)

DevTools Lighthouse: Best Practices displays "..." as a Deprecation/Warning

I'm testing the performance of my website with Lighthouse DevTool but I can't score 100% in Best Practices because keeps showing this as a problem:
Does anybody know what this means? How could I solve it?
You can find the specific errors in the "Issues" tab where the "Console" output is.
Also getting this, so you're not alone. Wondering if it was a recent Chrome bug I tried here - https://www.webpagetest.org/ and got the same useless error.
After a bit more digging, I found this closed issue on the lighthouse github repo.
https://github.com/GoogleChrome/lighthouse/issues/14233
So, it's been fixed, but only in version 10. Chrome 105 seems to be using lighthouse 9.6.2 and npm at the present time seems to install 9.6.7 (which has the same bug).
You can run the latest version by pulling the repo from github, building and running on the command line. See instructions here
https://github.com/GoogleChrome/lighthouse#develop
Note, the build doesn't work on an M1 mac, due to i386 specific build tools. I had to dig out my old macbook to get this working.

I am trying to install flutter and work in VS Code editor

iam I am trying to install flutter and work in vs codeVS Code editor
So firstFirst I downloaddownloaded the latest version of flutter ..ans install vs codeand installed VS Code, then I addadded the extensionextensions flutter and dart ..then Then I connect my device in usb and put it in developer mode .. And then I wrote in terminal 'flutter doctor " to validation if I make true .. so the device is appear in the bottom of screen of vsc but when I press f5 or wrote in terminal ' flutter run ' don't run .. and the problem is in image and I don't know how to solve it .. sorry
Sorry for my English language itsit's not perfect .. [I try a lot of things and failed] sorry I try a lot of things and failed
Sorry for a lot of talking thanks
Thanks.
You need to install vs2019 to use desktop version and chrome, its obviously clear
Follow this link and install vs2019 ,then install desktop development with c++
For cmdline-tool error follow this answer
You need to install sdk then run flutter doctor --android-lienses to accept sdks
I think its better to see answer of this question, just research on internet to solve this.
this is example in youtube

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.