sudo xcodebuild -license
from the command line.flutter doctor
to confirm that Flutter has located your installation of Android Studio. If Flutter cannot locate it, run flutter config --android-studio-dir <directory>
to set the directory that Android Studio is installed to.flutter devices
command to verify that Flutter recognizes your connected Android device. By default, Flutter uses the version of the Android SDK where your adb
tool is based. If you want Flutter to use a different installation of the Android SDK, you must set the ANDROID_SDK_ROOT
environment variable to that installation directory.JAVA_HOME
environment variable is set to the JDK’s folder.flutter doctor
again to confirm that you are ready to use Flutter.