问题
I installed the latest version of the ADT Bundle 32 bit on my ubuntu 14.04 32 bit. I created an AVD, but it doesn't launch. When I press the start button it shows this message:
Starting emulator for AVD 'NexusOne' 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.
I tried to fix it by setting export ANDROID_EMULATOR_FORCE_32BIT=true to gedit .profile file and to gedit .bashrc file. Nothing changed.
Thank you for trying to help me!
回答1:
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
回答2:
I solve this problem with the following:
export ANDROID_EMULATOR_FORCE_32BIT=true
Then I start the emulator from the command line. It works!
Hope it's helpful to you.
回答3:
I did the following
go to the run configuration >target tab> scroll down to the last> Additional emulator command line options>-force-32bit
回答4:
solution to this problem is given here
- Open terminal in ubuntu, and then type gedit .profile
- paste this text: export ANDROID_EMULATOR_FORCE_32BIT=true
- refresh source i.e. in terminal type source .profile
When no effect, finishing that by restart your device (laptop,pc)
回答5:
For Android Studio:
Run > Edit Configurations > Android > Android Application > app > Emulator tab
Enable the checkbox next to Additional command line options:
Enter -force-32bit
回答6:
go to the run configuration >target tab> scroll down to the last> Additional emulator command line options>-force-32bit
回答7:
I had same problem and now I solved,I have Ubuntu 15.10 And my solution was:
- Open terminal
- Locate path directory Android-studio at terminal
- I wrote export ANDROID_EMULATOR_FORCE_32BIT=true, keyboard key enter
- And execute the ./studio.sh locate in folder bin of Android-studio
回答8:
ON LINUX MINT
- Go to terminal
- type gedit .profile
- paste the below line at end of the page
- export ANDROID_EMULATOR_FORCE_32BIT=true
- type source .profile in terminal or restart system
ON UBUNTU
- Go to terminal
- type gedit .bashrc
- paste the below line at end of that file
- export ANDROID_EMULATOR_FORCE_32BIT=true
- type source ~/.bashrc in terminal or restart system
回答9:
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 executable and run it to active eclipse
"/opt/adt-bundle-linux-x86-20140702/eclipse/eclipse" is the path of eclipse
来源:https://stackoverflow.com/questions/26494305/error-32-bit-linux-android-emulator-binaries-are-deprecated