ERROR: 32-bit Linux Android emulator binaries are DEPRECATED when attemping to run the Android emulator
Solution 1:
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.
Solution 2:
i have one great solution. you can start it with eclipse or netbeans. try :
In Eclipse, click your Android project folder and then select Run > Run Configurations...
In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.
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...
- in Emulator options write
-force-32bit
- click ok. and run application
Solution 3:
Edit this file:
open terminal in ubuntu
gedit .bashrc
paste this text:
export ANDROID_EMULATOR_FORCE_32BIT=true
refresh source:
source ~/.bashrc
Solution 4:
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.