emulator: ERROR: unknown virtual device name……

來源:互聯網
上載者:User

遇到ERROR: unknown virtual device name這樣的問題一般是由於建立的檔案路徑引用錯誤造成的。比如Vista可以設定使用者檔案到F盤下。這樣在用Eclipse或者從命令列建立Android Emulator時,相應的檔案是被放置到 “F:/Users/<username>/.android“ 下面了,而程式運行時仍然從 “C:/Users/<username>/.android“ 下尋找相應的設定檔,從而導致上面的錯誤。
      

  • 解決辦法一:

      把 "F:/Users/<username>/.android“ 下的檔案複製到 “C:/Users/<username>/.android“ 下面即可解決這個問題,不過這樣的解決方案有一個明顯的缺點,那就是如果又新
      建立AVD,又得重新複製。

  • 解決辦法二:

      開啟系統屬性-->環境變數—>在“系統變數”那一個GroupBox下面選擇“建立”-->變數名為 "ANDROID_SDK_HOME” (注意,這個變數名不能改變,只能是這個名字!),然後把變數值改為你想把AVD所在的".android”檔案夾放置的位置,比如:"F:/AndroidEmulator”,在這裡我把它放在Android SDK包中,值為:"D:/SDK/Android/android-sdk-windows1.5_r3”

... 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.