Ionic-快速、跨平台APP開發框架

  1. 安裝JAVA - https://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. 安裝Node.js - https://nodejs.org/en/
  3. 安裝Android Studio(並且安裝SDK) - https://developer.android.com/studio/
  4. 安裝Cordova和Ionic
npm install -g cordovanpm install -g ionicionic info  #檢查安裝是否成功

5. 建立Ionic專案

ionic start myApp tutorial
  • start:建立新的專案
  • myApp:專案名稱(自訂),也就是資料夾名稱
  • tutorial:開始用的範本

6.在電腦上執行APP

cd myApp 
ionic serve

7. 選擇欲建立的APP平台

ionic cordova platform add androidionic cordova platform add ios

8.編譯APP

ionic cordova build android #編譯完成後會出現APK檔案,屆時再安裝至手機

更詳細的使用,請參考以下網站:

(1)下文的第七步驟建議安裝Android Studio,而不是用SDK(會有異常錯誤)

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store