Mac install flutter step on pit remember

Look at the full version link:

http://b36d5043.wiz03.com/share/s/2Prl132RpQ3x2XpA4I2oTa2204K0FF0vB4J42tWIEQ04UrAg 

 

 

First, download the flutter SDK; extracting / Users / app / under

Download: Android Studio and safety switch, the default option, know safety switch installation is complete, some need to provide permission.
Installation https://www.java.com/en/download/mac_download.jsp   the Java environment
Check the flutter doctor will see
 
 
You need to configure the android sdk environment variable, open the studio
 
 
Open open ~ / .bash_profile 
Add to
export ANDROID_HOME="/Users/用户名/xxx/xxx" //android sdk directory, substitute your own path to copy the above, added to the global environment variables
Install java environment continues to flutter doctor

 

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

Since the java environment installed version is too high, so the need to uninstall the current java
>

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

Turn over security

>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.
carry on
Execution of the command prompt:>

/Users/hewenke/Library/Android/sdk/tools/bin/sdkmanager --update

 

Enter Y Enter
Then continue> flutter doctor show
 
Continue y flutter doctor --android-licenses has appeared Enter know 100%;
Continue flutter doctor
Ann transfer xcode: the role is to simulate all kinds of mobile phones in the show segment mac
Download and install the package, you need app storexia 'Download Ann turn it bigger, extracting over about 16G; click on the security transfer, there will be a finished installing Apple phone appears on the desktop,
Continue fullter doctor finished checking,
Execution prompted xcode-select --switch ----- Arrhythmia above, or error;

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.
xcode relatively large, appstor finished downloading will install their own safety turn over the implementation of some

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer let the doctor look at: ok

Guess you like

Origin www.cnblogs.com/-youth/p/11003007.html