Still no compatible AVDs with target ‘Google APIs’

來源:互聯網
上載者:User

在用Android的新版本編譯器的時候,發現會出現一個錯誤提示:Still no compatible AVDs with target 'Google APIs'

    AVD即Android Virtual Device,它是Android平台的一個虛擬設備。在開始編譯Android程式時必須要有一個匹配的虛擬設備,以便呈現出Android的運行介面。

    要想建立一個AVD,首先開啟命令列工具cmd, 進入Android SDK的Tools目錄。輸入下面的命令:

 

     

[java] view
plaincopy

  1. android list targets  

 

    輸出結果會顯示目前可用的AVD裝置標識(實際輸出結果與你的環境有關):

 

    

[java] view
plaincopy

  1. id:1  
  2.     Name: Android 1.1  
  3.     Type: platform  
  4.     API level: 2  
  5.     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P  
  6. id:2  
  7.     Name: Android 1.5  
  8.     Type: platform  
  9.     API level: 3  
  10.     Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P  

 

    輸入以下命令,建立一個虛擬設備:

     

[java] view
plaincopy

  1. android create avd --name <your_avd_name> --target <targetID>  
  2. For example:  
  3. android create avd --name my_AVD --target 2  

 

    再次編譯器即可運行。

聯繫我們

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