14

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.

Seth
  • 59,332
Mohanraj Mani
  • 159
  • 1
  • 1
  • 3

5 Answers5

15

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.

Seth
  • 59,332
4

i have one great solution. you can start it with eclipse or netbeans. try :

  1. In Eclipse, click your Android project folder and then select Run > Run Configurations...

  2. In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.

  3. Click the Target tab.

In the Additional Emulator Command Line Options field, enter:

-force-32bit

Run your Android project using this run configuration.

in netbeans you : 1. wher you choose debuger chose Customize...

  1. in Emulator options write -force-32bit
  2. click ok. and run application
Jakob
  • 49
1

Edit this file:

open terminal in ubuntu

gedit .bashrc

paste this text:

export ANDROID_EMULATOR_FORCE_32BIT=true

refresh source:

source ~/.bashrc
muru
  • 207,228
Angel
  • 11
  • 1
1

create a shell script :

#!/bin/bash
#
#   set export ANDROID_EMULATOR_FORCE_32BIT=true

export ANDROID_EMULATOR_FORCE_32BIT=true
/opt/adt-bundle-linux-x86-20140702/eclipse/eclipse

Change the shell script to executable and run it to launch eclipse

/opt/adt-bundle-linux-x86-20140702/eclipse/eclipse is the path to the eclipse executable.

patrkw
  • 11
1

I have resolved this issue by updating the emulator configuration in Android studio as follows.

  1. Go to Run -> Edit Configuration.. menu in Android Studio
  2. Select the app name under Android Application on the left pane
  3. Select Emulator tab on the right pane
  4. Tick "Additional command line options:" and enter -force-32bit in the text box next to it
  5. Select "OK" and try to Run the app again.