attemping运行Android模拟器时,32位Linux Android模拟器的二进制文件已被弃用

http://askubuntu.com/questions/534044/error-32-bit-linux-android-emulator-binaries-are-deprecated-when-attemping-to-r

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.

的解决办法

attemping运行Android模拟器时,32位Linux Android模拟器的二进制文件已被弃用


 如果你的Linux机子是32位的,那么Android studio 运行android模拟器的时候会报错,如下:

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.


Android模拟器在64位系统上运行最好,所以最好的解决办法是重新安装64位的linux系统,如果暂时重装系统比较麻烦的话,有以下两种方法来解决:

1. 在你要运行的个工程右击->Run as -> Run configuration->Android application-> emulator , 滚动条拉到最后,找到commandline输入框,输入"-force-32bit",然后apply即可。


2. 配置环境变量,加上ANDROID_EMULATOR_FORCE_32BIT=true

******************特别注意**********************


AVD模拟器启动前需要先配置
打开终端在Ubuntu
命令行:gedit .profile 
末尾贴上这样的文字:export ANDROID_EMULATOR_FORCE_32BIT=true 
保存并关闭它
命令行:source .profile  (从终端或重新启动,使更改生效)
******************特别注意**********************


参考:https://www.zhihu.com/question/20425466


接下来可以新建一个Android Application Project
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值