天天看點

Android:Failed to allocate memory: 8;This application has requested the Runtime to terminate it ...

問題描述:

安裝完ADT插件,啟動AVD時控制台出現以下提示,并不能啟動AVD:

Failed to allocate memory: 8

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.
           

(這個程式請求運作時 用一個異常的方式終止,請與應用程式的支援小組聯系以獲得更多的資訊。)

解決辦法:

打開以下配置檔案

C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini

或者 C:\Documents and Settings\Administrator\.android\avd\<avd-profile-name>.avd\config.ini
           

将最後一行

hw.ramSize=512
           

替換為

hw.ramSize=512M
           

PS:我利用該方法解決了問題,希望對你用幫助;