CodePudding user response:
Well First Of All Enable USB Debugging In Your Phone And See if It Shows Your Device Now.
Now In You Your Command Line Run This
flutter doctor --android --licenses
It will automatically install all the required License And You Are Good to go
AS for CommandLine Tools error Navigate to SDK Folder in your Command by entering
cd "Path of your sdk"
and After That hit this line
"--install cmdline-tools;latest"
I repeat navigate to your sdk folder and then hit this command and you are good to go.
And personally I won't suggest you to install the emulator as you said your ram is of 2gb Then it will Lag alot better turn on usb Debugging and try it on your phone !!