如何安裝apk檔案在Android模擬器中

來源:互聯網
上載者:User

如果您是android方面的新手,想測試對已有android方面的應用,該如何進行:

  1.首先得到android SDK(http://code.google.com/android/download.html),並且解壓到您的硬碟某處

  2.增加系統變數SDK_ROOT,讓她指向sdk之下 /tools檔案夾

  3.運行android的模擬器(windows下雙擊emulator.exe可執行檔,啟動時間稍長,稍微有點耐心。啟動起來的畫面如。)

  4.複製apk檔案到/tools檔案夾中

  5.改變目錄到/tools,並且從命令列下運行 $adb install your_application.apk (abc 是tools目錄下的一個可執行檔abc.exe,your_application.apk 是你下載的應用檔案包)

  6.現在檢查模擬器中的applications,新的應用應該已經在她的內容裡面,並且您應該看到新應用準備和安裝好。

  我在window下碰到的錯誤資訊,當在在window啟動並執行adb提示 :* deamon still not running *

  error: no device.

  在這種情況下嘗試到停止adb伺服器並且手動地開始它使用:

  1.$adb kill-server

  2.$adb start-server

  如果您想測試deamon是否在運行,輸入:$adb shell

  卸載你測試應用做法是

  $adb shell rm your_application.apk

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.