android 模擬器啟動失敗應對

方健發表於2014-11-29

症狀:

在IDE裡執行模擬器一會兒就掛了
命令列直接敲emulator64-x86 -avd AVD_for_Nexus_5_by_Google
得到錯誤提示:
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(libOpenglRender.dylib, 1): image not found emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.

參考

https://code.google.com/p/android/issues/detail?id=33336
https://groups.google.com/forum/#!msg/adt-dev/gwcLeOTfxD4/kW-qebk0C-wJ

解決辦法:

LD_LIBRARY_PATH=/Users/fangjian/Soft/android-sdk-macosx/tools/lib/emulator/ emulator -verbose -avd AVD_for_Nexus_5_by_Google

解決辦法:

實際上用emulator -avd AVD_for_Nexus_5_by_Google 就可以

再更新

看來是intellij的問題。從命令列啟動或者用Android Studio啟動都沒有問題

相關文章