Ubuntu – ERROR: 32-bit Linux Android emulator binaries are DEPRECATED when attemping to run the Android emulator

32-bitandroidemulation

I have set the android development environment in Ubuntu 10.10, 32 bit.
After creating the AVD when I launched the emulator I have received the following error.

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.

The ADT version I am using is 23.0.3.1327240. The SDK libraries I am using is 32bit.
kindly help me.
Thanks.

Best Answer

You're getting this error because you are apparently running on a 32bit system and the Android emulator is designed to operate best in a 64 bit environment. The only real solution is to install a 64bit operating system.

If your hardware doesn't support 64bit or you can't reinstall right now you can temporarily bypass the problem by passing -force-32bit when you start the emulator from the commandline or by setting ANDROID_EMULATOR_FORCE_32BIT to true in your environment (as the error says). You can do this by running:

gedit .profile  

From a terminal. Add the text:

export ANDROID_EMULATOR_FORCE_32BIT=true  

to the end of the file and save and close it. I can't test it right now but you'll either need to run source .profile from the terminal or restart for the changes to take effect.

Try launching the emulator.

It is highly recommended that you install a 64bit operating system to continue your Android development because Google will eventually remove the 32bit binaries which will cause your emulator to stop working. Android itself is also moving towards a x64 architecture, so by staying with 32bit you will get left behind very soon.

Related Question