Can't change emulated performance of AVD in Android Studio

后端 未结 8 1076
轻奢々
轻奢々 2020-12-07 15:16

I can\'t change the graphics to software as I\'m sure this is the fix for my AVD not launching. The option is greyed out (see screenshot). Has anyone has experience with th

相关标签:
8条回答
  • 2020-12-07 15:48

    For those who are still searching for solutions on how to make it work with an image containing google play store: install / update your GPU problem ! On my Ubuntu 20 this was the issue !

    0 讨论(0)
  • 2020-12-07 15:50

    Seems like the problem was with the choosen VM. If I choose a Nexus 4, it runs just fine.

    0 讨论(0)
  • 2020-12-07 15:51

    Open Android Virtual Device Manager Android Studio, change VMHeap to 512, RAM to 4096 MB. Then restart Android Studio.

    0 讨论(0)
  • 2020-12-07 15:57

    I also think it's related to whether the Playstore is contained or not, but I cannot explain why.

    Dielson Sales already gave the answer which worked for me - unfortunately only in a comment to this answer. I just thought it's worth to make a "real" answer out of it:

    Edit the config.ini file of the AVD. Under Linux it's located under /home/<user>/.android/avd/<AVD-name>/config.ini (in my case <AVD-name> is Nexus_5X_API_29.avd).

    In a text editor change the lines

    hw.gpu.enabled=no
    hw.gpu.mode=auto
    

    either to

    hw.gpu.enabled=no
    hw.gpu.mode=off
    

    or to

    hw.gpu.enabled=yes
    hw.gpu.mode=host
    

    This setting remains even if opened in the Android Virtual Device Manager of Android Studio. It's just not editable there.

    I also tried this, which I found in another AVD:

    hw.gpu.enabled=yes
    hw.gpu.mode=software
    

    But this is then changed to "no" / "off" by the Android Virtual Device Manager. I didn't look any further so far. hw.gpu.mode=off worked for me. Otherwise my whole Kubuntu hangs (using the Nouveau driver, not the NVidia driver)

    0 讨论(0)
  • 2020-12-07 16:03

    I am little late on this thread but following are my findings and solution. I am using Ubunut 18.04 and faced the same issue. The solution is to edit AVD and under Emulated Performance, change the grpahics to Software. The problem was that this option was disabled for me. I was unable to change graphics drop down.

    I did some more research and found that while creating AVD if you choose default/existing device definition on first screen, you will not be able to edit graphics drop down.

    The solution is to create a "New Hardward Profile" while creating AVD and use your new profile. Now, you will be able to edit "Grahics" drop down.

    Hope this helps....

    0 讨论(0)
  • 2020-12-07 16:10

    I think It's just a bug!

    Solved the issue by selecting any virtual device had the option enabled and after finishing the installation I just clicked on edit and reselected the device I wanted and the option was still enabled.

    Click on edit button from here.

    Then change the device to the one you want.

    0 讨论(0)
提交回复
热议问题