错误:32 位 Linux Android 模拟器二进制文件已弃用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26494305/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ERROR: 32-bit Linux Android emulator binaries are DEPRECATED
提问by user242918
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:
我在 ubuntu 14.04 32 位上安装了最新版本的 ADT Bundle 32 位。我创建了一个 AVD,但它没有启动。当我按下开始按钮时,它会显示以下消息:
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.
启动 AVD 'NexusOne' 模拟器错误:32 位 Linux Android 模拟器二进制文件已弃用,要使用它们,您必须至少执行以下操作之一: - 调用 'emulator' 时使用'-force-32bit' 选项。- 在您的环境中将 ANDROID_EMULATOR_FORCE_32BIT 设置为“true”。任何一个都允许您使用 32 位二进制文件,但请注意,这些将在未来的 Android SDK 版本中消失。考虑在此之前迁移到 64 位 Linux 系统。
I tried to fix it by setting export ANDROID_EMULATOR_FORCE_32BIT=true to gedit .profile file and to gedit .bashrc file. Nothing changed.
我试图通过将 export ANDROID_EMULATOR_FORCE_32BIT=true 设置为 gedit .profile 文件和 gedit .bashrc 文件来修复它。没有改变。
Thank you for trying to help me!
谢谢你试图帮助我!
回答by jakob
i have one great solution. you can start it with eclipse or netbeans. try :
我有一个很好的解决方案。您可以使用 eclipse 或 netbeans 启动它。尝试 :
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.
在 Eclipse 中,单击您的 Android 项目文件夹,然后选择 Run > Run Configurations...
在 Run Configurations 对话框的左侧面板中,选择您的 Android 项目运行配置或创建一个新配置。
单击目标选项卡。
In the Additional Emulator Command Line Options field, enter:
在附加模拟器命令行选项字段中,输入:
-force-32bit
Run your Android project using this run configuration.
使用此运行配置运行您的 Android 项目。
in netbeans you : 1. wher you choose debuger chose Customize...
在 netbeans 中,您: 1. 选择调试器时选择自定义...
- in Emulator options write
-force-32bit
- click ok. and run application
- 在模拟器选项中写入
-force-32bit
- 单击确定。并运行应用程序
回答by shuofei
I solve this problem with the following:
我用以下方法解决了这个问题:
export ANDROID_EMULATOR_FORCE_32BIT=true
导出 ANDROID_EMULATOR_FORCE_32BIT=true
Then I start the emulator from the command line. It works!
然后我从命令行启动模拟器。有用!
Hope it's helpful to you.
希望对你有帮助。
回答by Ameen Maheen
I did the following
我做了以下
go to the run configuration >target tab> scroll down to the last> Additional emulator command line options>-force-32bit
转到运行配置>目标选项卡>向下滚动到最后一个>附加模拟器命令行选项>-force-32bit
回答by Ali
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
- 在 ubuntu 中打开终端,然后输入 gedit .profile
- 粘贴此文本:export ANDROID_EMULATOR_FORCE_32BIT=true
- 刷新源即在终端类型源 .profile
When no effect, finishing that by restart your device (laptop,pc)
当没有效果时,通过重新启动您的设备(笔记本电脑,PC)来完成
回答by Chris
For Android Studio:
对于安卓工作室:
Run > Edit Configurations > Android > Android Application > app > Emulator tab
运行 > 编辑配置 > Android > Android 应用程序 > 应用程序 > 模拟器选项卡
Enable the checkbox next to Additional command line options:
启用附加命令行选项旁边的复选框:
Enter -force-32bit
输入-force-32bit
回答by xola139
I had same problem and now I solved,I have Ubuntu 15.10 And my solution was:
我遇到了同样的问题,现在我解决了,我有 Ubuntu 15.10 而我的解决方案是:
- 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
- 打开终端
- 在终端找到路径目录 Android-studio
- 我写了export ANDROID_EMULATOR_FORCE_32BIT=true,键盘键回车
- 并执行Android-studio文件夹bin中的./studio.sh
回答by Pranav V R
ON LINUX MINT
在 LINUX 上
- Go to terminal
- type gedit .profile
- paste the below line at end of the page
- export ANDROID_EMULATOR_FORCE_32BIT=true
- type source .profilein terminal or restart system
- 前往终端
- 输入gedit .profile
- 将以下行粘贴到页面末尾
- 导出 ANDROID_EMULATOR_FORCE_32BIT=true
- 在终端输入source .profile或重启系统
ON UBUNTU
在 UBUNTU
- Go to terminal
- type gedit .bashrc
- paste the below line at end of that file
- export ANDROID_EMULATOR_FORCE_32BIT=true
- type source ~/.bashrcin terminal or restart system
- 前往终端
- 输入gedit .bashrc
- 在该文件的末尾粘贴以下行
- 导出 ANDROID_EMULATOR_FORCE_32BIT=true
- 在终端输入source ~/.bashrc或重启系统
回答by Karthik Reddy A
go to the run configuration >target tab> scroll down to the last> Additional emulator command line options>-force-32bit
转到运行配置>目标选项卡>向下滚动到最后一个>附加模拟器命令行选项>-force-32bit
回答by patrick
create a shell script :
创建一个shell脚本:
#!/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
更改shell脚本可执行文件并运行它以激活eclipse
“/opt/adt-bundle-linux-x86-20140702/eclipse/eclipse”是eclipse的路径