Look at the full version link:
http://b36d5043.wiz03.com/share/s/2Prl132RpQ3x2XpA4I2oTa2204K0FF0vB4J42tWIEQ04UrAg
First, download the flutter SDK; extracting / Users / app / under
export ANDROID_HOME="/Users/用户名/xxx/xxx" //androi
d sdk directory, substitute your own path to copy the above, added to the global environment variables
Error Android license status unknown.
> flutter doctor --android-licenses
Execution of the command prompt:>
/Users/hewenke/Library/Android/sdk/tools/bin/sdkmanager --update
The results suggest that
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
>
sudo rm -fr /Library/referencesPanes/JavaControlPanel.prefpane
>ls /Library/Java/JavaVirtualMachines/
Display: jdk-12.0.1.jdk
>sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk
Uninstall successful: java -version // prompt No Java runtime present, requesting install.
Ann turn 1.8java version
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
>java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
An 1.8 transfer is completed.Execution of the command prompt:>
/Users/hewenke/Library/Android/sdk/tools/bin/sdkmanager --update
xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'
hewenkedeMacBook-Pro:~ hewenke$ sudo xcodebuild -license
Password:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
hewenkedeMacBook-Pro:~ hewenke$
Then performed: brew update these steps, performed one by one;
brew update
brew install --HEAD usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew install ios-deploy
brew install cocoapods
At last
pod setup // use cloud wall installation https://netfits.org.cn
Execution flutter doctor display the following error
// The above steps are a problem, need to appstore to download xcode installed, you need to download androidstudio http://www.android-studio.org installation.
Android Studio installation after the show, you need to install these tools; plus a device.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer let the doctor look at: ok