错误:32 位 Linux Android 模拟器二进制文件已弃用

错误:32 位 Linux Android 模拟器二进制文件已弃用

当我启动 ADV 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.

答案1

打开终端并运行

sudo android avd -force-32bit

这应该会以 32 位模式启动它

不再支持 32 位版本的 adv,由于 32 位内存限制,强烈建议使用 64 位操作系统,但可能会出现一些复杂情况。

答案2

Linux Android 模拟器二进制文件需要具有足够 RAM 的计算机才能正常运行,通常是 64 位架构的计算机,具有足够的 RAM 以适合在其上安装 64 位操作系统。

Android 本身也正在转向 x64 架构,因此如果继续使用 32 位,您最终会落后。

如果您在使用 Eclipse 的 ADT(Android 开发者工具)插件时收到问题中的错误消息,您也应该考虑这一点。如果您一直在使用带有 ADT 的 Eclipse,请注意 Android Studio 现在是 Android 的官方 IDE,因此您应该迁移到Android Studio接收所有最新的 IDE 更新。Android 虚拟设备管理器 (AVD 管理器) 包含在 Android Studio 中。如需移动项目的帮助,请参阅迁移到 Android Studio。你可以在所有当前支持的 Ubuntu 版本中安装 Android Studio,只需添加适用于 Ubuntu PPA 的 Android Studio到您的软件源。

相关内容