Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED

Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED

我最近将 ubuntu 13.10 64 位升级到 14.04 64 位。 Android Studio 在 13.10 上一直运行良好。

在 14.04 我遇到了 gradle 的问题(this one), which was a problem with missing libz.so.1. Following this link,我不得不安装这个包的 32 位版本,它解决了我的问题。

现在(我认为它是相关的),在尝试启动设备模拟器时,我收到这条消息:

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.

但我的系统是 64 位的(顺便说一下,-force-32bit 技巧不起作用)。

奇怪的是,我删除了我安装的32位包,没有任何改变(我的gradle问题没有再次出现,我的模拟器问题仍然存在)。

我该怎么办?

谢谢

我也在用Ubuntu 14.04,显然新版内核(3.13.0-59-generic)有bug,因为我昨天在用模拟器工作,直到今天内核更新时我才遇到任何问题。

我重新启动了Ubuntu,这次选择了以前版本的内核(3.13.0-58-generic),然后又可以了。

希望对您有所帮助。

PS:您可以从 grub 引导以前版本的内核,在 Ubuntu 的高级选项。

最近更新后,3.13.0-59 内核对我造成了同样的问题。我通过 运行:

卸载了它
sudo apt-get purge linux-image-3.13.0-59-generic

重启时grub会自动使用之前版本的内核。请注意,这也会删除 linux-image-generic 包,以防止将来自动更新内核。

昨天,我在更新 Ubuntu 后遇到了同样的问题。今天它已在新更新中修复。只需在更新后更新您的 Ubuntu 和 运行 模拟器即可。它应该有效。

更新后当前内核版本为:3.13.0-61-generic

我有 64 位 Ubuntu 和内核 4.8.0-37,我无法解决这个问题,直到我明确启动 emulator64-x86 可执行文件而不是仅启动 emulator默认为 Android Studio。