我最近将我的ubuntu 13.10 64位升级到14.04 64位。 Android Studio在13.10上运行良好。
在14.04我遇到了gradle(this one)的问题,这是一个缺少libz.so.1的问题。在this link之后,我不得不安装此软件包的32位版本,这解决了我的问题。
现在(我认为这是相关的),在尝试启动设备模拟器时,我收到此消息:
错误:32位Linux Android模拟器二进制文件已弃用,即可使用 他们至少要做到以下其中一项: - 使用' -force-32bit'调用'模拟器'时的选项。 - 将ANDROID_EMULATOR_FORCE_32BIT设置为' true'在你的环境中。任何一个都允许你使用32位二进制文件,但请你 意识到这些将在未来的Android SDK版本中消失。 在发生这种情况之前,请考虑迁移到64位Linux系统。
但是我的系统是64位的(顺便说一下,-force-32bit
技巧不起作用)。
奇怪的是,我删除了我安装的32位软件包,没有任何改变(我的gradle问题没有再次出现,我的模拟器问题仍在这里)。
我该怎么办?
由于
答案 0 :(得分:3)
I'm also using Ubuntu 14.04, and apparently there is a bug with the new version of the kernel (3.13.0-59-generic), since I was working yesterday with the emulators and I didn't have any problems until today, when there was a kernel update.
I rebooted Ubuntu, this time choosing the previous version of the kernel (3.13.0-58-generic), and it works again.
I hope this helps.
PS: you can boot the previous versions of the kernel from the grub, on Advanced options for Ubuntu.
答案 1 :(得分:2)
我有内核4.8.0-37的64位Ubuntu,直到我明确启动emulator64-x86
可执行文件而不仅仅是Android Studio默认启动的emulator
之前我无法解决这个问题。
答案 2 :(得分:1)
昨天,我在更新Ubuntu后遇到了同样的问题。今天它已在新的更新中修复。只需更新您的Ubuntu并在更新后运行模拟器。它应该工作。
更新后的当前内核版本为: 3.13.0-61-generic
答案 3 :(得分:0)
3.13.0-59内核在最近更新后给我造成了同样的问题。我通过运行来卸载它:
sudo apt-get purge linux-image-3.13.0-59-generic
重启时,grub会自动使用以前版本的内核。请注意,这也会删除linux-image-generic
包,从而阻止将来自动更新内核。