Android 開發時遇到的兩個模擬器問題

來源:互聯網
上載者:User

開發環境: windows 2008 R2 x64, JDK 7u10, ADT v21.0.1-543035一.啟動 Nexus 7 模擬器失敗模擬器啟動出現如下錯誤:Starting emulator for AVD 'nexus7'Failed to allocate memory: 8This application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information. 網路搜尋解決:來源:http://code.google.com/p/android/issues/detail?id=36080方法:用命令列啟動,指定記憶體為 512M,預設1024M有問題c:\xxx>emulator -avd nexus7 -memory 512 二.GUI 響應非常慢模擬器啟動出現如下錯誤:Starting emulator for AVD 'nexus7'emulator: ERROR: Could not load OpenGLES emulation library: Could not load DLL!emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.介面操作,響應很慢 網路搜尋解決:來源:http://stackoverflow.com/questions/11674306/eclipse-android-emulator-wont-launch原因是未指定類庫地址相關環境變數方法:添加變數定義:LD_LIBRARY_PATH=/home/xxxx/devel/android-sdk-linux/tools/lib 為此,建立一個批處理來啟動模擬器 em.bat,存放在sdk的tools目錄下,如下:setlocalset LD_LIBRARY_PATH=K:\android\ide\adt-bundle-windows-x86_64\sdk\tools\libemulator.exe -avd nexus7 -memory 512 -gpu on 開發中,先用命令列啟動模擬器,再在運行調試時,選擇當前啟動並執行AVD即可.

聯繫我們

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