Android memory allocation

后端 未结 4 1109
难免孤独
难免孤独 2020-11-27 03:34

I am getting a \"bitmap size exceeds VM budget\" error. I have read that there is a 16MB memory limit. In this thread Romain Guy says that \"you can only allocate 16 MB of

4条回答
  •  离开以前
    2020-11-27 04:08

    I found the answer for your question recently.

    Go to Android SDK Directory and
    run sdk manager (Tools->android run this file)

    In SDK manager go to Tools-->Manage AVDs

    Now Android Virtual Device Manager Dialogue box is open..

    in that window select your AVD and click Edit

    Now in SD card section select SIZE and set 1024 MiB in Hardware section click New and select property " Maximum VM application heap Size" Now set 100 (based on your app requirement) Finally click "Edit AVD"

    After edit click refresh button on sdk Manager

    Now run your app in AVD your problem is solved.

提交回复
热议问题