I know that there are a ton of solutions on Stack Overflow for this issue but none of them is working for me.
I downloaded the Android SDK using Homebrew and set the path to the SDK using this command: flutter config --android-sdk /usr/local/Caskroom/android-sdk
and I got this output:
Setting "android-sdk" value to "/usr/local/Caskroom/android-sdk".
You may need to restart any open editors for them to read new settings.
Now, when I run flutter doctor --android-licenses
, I get this error:
Unable to locate Android SDK.
I've tried almost all the solutions on Stack Overflow. What can I try next?