当前位置: 动力学知识库 > 问答 > 编程问答 >

How to free vspace in the Android emulator

问题描述:

Sometimes when I compile an app on my Android device I get the following errors:

E/HAL(2125): load: module=/system/lib/hw/gralloc.msm7k.so

E/HAL(2125): Cannot load library: alloc_mem_region[869]: OOPS: 93 cannot map library 'gralloc.msm7k.so'. no vspace available.

E/GraphicBufferMapper(2125): FATAL: can't find the gralloc module

How can I free up vspace to be able to compile the app again? I've already tried rebooting and turning off and on the phone but it didn't work.

The only thing I could find on Stackoverflow about this topic is this question with no answer...

网友答案:

Under "additional emulator command line options," add this:

-partition-size 1024

then click on apply and run. If this fails, then add this instead:

memory -512

If all else fails: Increase the AVD RAM and the max VM application heap size in VM options. AVD Manager -> Virtual Devices -> Edit. It's probably set to 24, set it to 32 at first, then at 48 if it's still NOK.

分享给朋友:
您可能感兴趣的文章:
随机阅读: