flutter 安裝過程遇到的坑


Flutter是一個移動應用程序的軟件開發工具包(SDK),用一個代碼庫構建高性能、高保真的iOS和Android應用程序。目標是使開發人員能夠為Android和iOS提供自然的高質量的應用,在滾動行為、排版、圖標等方面實現零差異。

學習Flutter不需要Android或iOS的開發經驗,因為Flutter程序使用Dart語言編寫,如果您使用過Java或JavaScript等語言,輕易就能上手,只要有面向對象語言的經驗,即使不是程序員也能開發Flutter應用程序!

搭建 flutter 開發環境

因為眾所周知的原因,希望你能夠翻牆后(自行搭梯子)進行下面的操作。

官網鏈接

要搭建一個 flutter 的開發環境,你需要:

  • 下載 flutter 官方 SDK
  • 安裝 JAVA SDK(v1.8.0)
  • 安裝 Android studio

以上下載及安裝教程,

安裝過程中的坑

#sdkmanager is not a commend

請將你本機的 andriod-SDK\andriod\tools\bin 和 andriod-SDK\andriod\platform-tools 寫入系統環境變量的 PATH 中。

#Android license status unknown. #16025

這是非常多人會遇到的一個 issue,如果你已經按照上面的步驟安裝成功,那么請確認你的 JAVA SDK 版本是否高於 v8,如果是,請降級到 1.8.0。

這是因為 android sdk 不兼容 java 9 及以上版本。

In general JAXB APIs are considered to be Java EE APIs, and therefore are no longer contained on the default class path in Java SE 9. Java 9 introduces the concepts of modules, and by default the java.se aggregate module is available on the class path (or rather, module path). As the name implies, the java.se aggregate module does not include the Java EE APIs that have been traditionally bundled with Java 6/7/8. Fortunately, these Java EE APIs that were provided in JDK 6/7/8 are still in the JDK, but they just aren't on the class path by default. The extra Java EE APIs are provided in the following modules

#其他

在安裝過程中,可能第一次安裝會失敗,請多試幾次。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM