iT邦幫忙

2021 iThome 鐵人賽

DAY 4
2
自我挑戰組

才30天?一個月學會Android開發系列 第 4

Day-04 如何將APP安裝到手機上

  • 分享至 

  • twitterImage
  •  

在昨天的內容我們認識了Android模擬器,模擬器固然方便,但是或許會碰上模擬器可執行、而裝置卻不支援,亦或是版面、版本不相同的問題,因此本次要介紹如何透過USB將APP安裝到手機上,其步驟如下:

  1. 點擊工具列Tools➞SDK Manager
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950YLrOEE5jdu.png
  2. 點擊SDK Tools,勾選Google USB Driver並按下OK
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950Kpw7j4OO3p.png
  3. 按下OK
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950ibzYVwWUhw.png
  4. 安裝成功,按下Finish返回程式編譯畫面
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950zpoQLH8LPY.png

接著到手機進行操作

  1. 進入設定-關於手機(每個廠牌位置略有不同
    https://ithelp.ithome.com.tw/upload/images/20210917/201419501rpZCzzZC0.jpg
  2. 連續點擊版本直至顯示已是開發人員
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950QEogQaWRJ7.jpg
  3. 回到設定,點擊更多設定(每個廠牌位置略有不同
    https://ithelp.ithome.com.tw/upload/images/20210917/2014195063ubAwqM7T.jpg
  4. 點擊開發者選項
    https://ithelp.ithome.com.tw/upload/images/20210917/20141950ofZZq5tOd9.jpg
  5. 開啟USB偵錯模式
    https://ithelp.ithome.com.tw/upload/images/20210917/201419508Rk0hcTa25.jpg

手機已設定完成,接著拿出USB線,將手機與電腦連接,檢查Android Studio會發現上方所顯示的不再是模擬器名稱,而是USB所連接的裝置名稱,這就表示你已成功。
https://ithelp.ithome.com.tw/upload/images/20210917/20141950eYQafUBhSZ.png

點擊執行,待片刻後手機會跳出USB安裝提示,按下繼續安裝APP就會顯示於你的手機上
https://ithelp.ithome.com.tw/upload/images/20210917/20141950rtkXjbKw4z.jpg

關於如何將APP安裝到手機上到這邊就告一段落拉,希望這篇有幫助到你。


上一篇
Day-03 認識Android模擬器
下一篇
Day-05 問題與解決
系列文
才30天?一個月學會Android開發30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言