Search code examples
androidandroid-studioandroid-emulator

Record in Android Emulator flickers


I have tried recording in Android Studio with different emulated devices and programs, but all my records flicker heavily.

The screen of the emulator itself doesn't flicker.

I have tried using Nexus 5X, Nexus 7 and Pixel 2 on 25 and 28 API level.

I'm running the emulator on Windows 10 with Intel Core i7-4720HQ, 16GB memory and NVIDIA GeForce GTX 970M.

I have set the mode to Maximum Performance in NVIDIA Control Panel.

When I record the same programs with real phone, everything works fine.

The version of Android Studio is up-to-date.


Solution

  • I had the same problem and I have solved it by changing a parameter in the emulator's config.ini file

    To solve it, you go to the path in your machine where the emulator devices are located, example: C:\Users\XXXX\.android\avd\

    Enter the directory of the emulator that you want to fix, open the config.ini file in a text editor and where it says:

    hw.gpu.mode = auto
    

    You replace it with:

    hw.gpu.mode = guest
    

    Save the changes and restart the emulator.