依據

Building a Native Mobile App with Cordova and Ionic

的步驟逐步安裝並建立專案

ionic build android

在cmd測試Ionic

若遇到錯誤:

emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined

就代表SDK沒安裝好,我以API23為例,我是全裝

(只是這張圖還沒全裝,範例而已)

再檢查AVD的設定,裡面是空的就creat一個

 

我隨便設

 

不過我不用模擬器跑,我用手機偵錯所以我不是輸入

ionic emulate android

而是輸入

ionic run android

 

成功畫面

文章標籤
全站熱搜
創作者介紹
創作者 程式小試身手 的頭像
程式小試身手

程式小試身手

程式小試身手 發表在 痞客邦 留言(0) 人氣(255)