Android Studio in Linux 32 bits: error Cannot launch AVD in emulator


If you use Android Studio in Linux 32 bits, and you get the error:

android studio linux

Cannot launch AVD in emulator.
Output:
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them
       you will have to do at least one of the following:
       - Use the '-force-32bit' option when invoking 'emulator'.
       - Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment.
       Either one will allow you to use the 32-bit binaries, but please be
       aware that these will disappear in a future Android SDK release.
       Consider moving to a 64-bit Linux system before that happens.

You can follow some steps to fix it.

Step 1: open terminal in linux (like kali linux)

Step 2: use this command:
gedit .bashrc

Step 3: paste text:
export ANDROID_EMULATOR_FORCE_32BIT=true

Step 4: use this command:
source ~/.bashrc

Step 5: reboot your machine.

Leave a Reply