Cannot run any flutter commands because of permissions, downloaded using homebrew - flutter

I want to learn how to use flutter, so I downloaded it using homebrew on the M1 Mac.
Running which flutter returns /opt/homebrew/bin/flutter
I tried running flutter doctor which errors out. I'm not sure how to handle this.
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.```

This sounds like a Homebrew permissions question that you happened to have bumped into with Flutter - which is good news, because Homebrew permissions issues are fairly well explored. This question has a ton of great answers.

Related

Mobile app crash after flutter update. What to do?

After a recent flutter update, my app stopped working. Throws out from the mobile application. Can you help me? I have got this error:
adb: failed to install /Users/User/Desktop/project/build/app/outputs/flutter-apk/app.apk: Failure[INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.package.name: signatures do not match previously installed version; ignoring!]
Before that everything worked. I don't know what to do, please help. The command adb uninstall <package_name> won't help. The project is already on Google Play
I tried reinstalling. Install the original version of the mobile application. update all dependencies, but nothing helped
that's because it's different from the previous version you can see in a similar case here

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.

How can i 'complete' my dart SDK rather than installing a separate version when using flutter?

I installed flutter by downloading and installing a release version.
It contains a partial dart SDK in its cache subfolder.
Namely, it's missing (amongst others executables) dart2native.
I realize I could just download and install a separate dart SDK from their website, then change all my paths to point to this newer, complete SDK. But that's exactly the problem - I do not wish to run 2 sdk version in parallel, it's confusing and likely will cause errors down the line (for example, my copy of android studio might be pointing at this or that SDK, and god knows what other tools might point towards it).
Question: is there a way to 'fill' my flutter dart SDK with the missing tools? Or am i doomed to run 2 version of dart SDK in parallel?
Answering my own question - after much googling, I found a repo maintainer stating that "For now, if you want to do to Dart development and use the Dart terminal commands (like dartfmt, pub, or dart2native), it's recommended that you download and install the Dart SDK. If you'd like you can also add it to path."
This is clearly sub-optimal. In fact just as I expected it seems to have led to a few people having faced issues, comment on https://github.com/flutter/flutter/issues/43968 if you'd like to see this addressed.

Having Hello A ssl problems while installing cocoapods

hello guys i am having problems wile trying to install cocoapods in el captian i just updated yesterday and cant install the cocoapods due to this error
terminal results
im kinda new to mac and xcode and everything i have already looked at all the answers that might have helped like
Cannot install cocoa pods after uninstalling, results in error
and entered the codes bud didnt get any result on it so if u could explain the issue in a simple way that would be great thanks
hey after some research and asking from some friends this is what they offered me
Sounds like there is some SSL issue in your RubyGems installation, maybe this can help. Another option is to use the OS X app as installation method instead: https://github.com/CocoaPods/CocoaPods-app/releases/tag/0.39.0
i used the app and it solved my problem
thanks anyways