指定記憶體數量

  1. 在Project上點擊滑鼠右鍵,在「Run As」內選擇「Run Configurations…」。
    解決 Android API 16 (4.1.2) 模擬器的 Failed to allocate memory 錯誤
  2. 在「Target」內的「Additional Emulator Command Line Options」輸入︰
    1
    -memory 512

    強行將模擬器的記憶體設定為512MB。之後按下「Apply」,然後再按「Run」執行Android程序。

    解決 Android API 16 (4.1.2) 模擬器的 Failed to allocate memory 錯誤

  3. 等待一會兒,就會看到7吋平板電腦的Android模擬器。
    解決 Android API 16 (4.1.2) 模擬器的 Failed to allocate memory 錯誤

相关文章: