将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行-找不到Qt库 [英] Android Emulator does not work on Ubuntu after upgrading Android Studio to 2.0 - Qt library not found

查看:288
本文介绍了将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行-找不到Qt库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我将Android Studio安装升级到了2.0版.我手动进行了更新(下载.zip,因为更新机制只是告诉我有一个新版本,但无法在Android Studio中直接更新).现在,当我尝试启动仿真器时,收到以下错误消息:

Today, I updgraded my Android Studio installation to version 2.0. I updated it manually (download the .zip, because the update mechanism just telled me that there is a new version but offered no possibility for direct update in Android Studio). When I now try to start an emulator, I receive this error message:

错误:./android/qt/qt_setup.cpp:33:在以下位置找不到Qt库 /home/kcd/Android/Sdk/tools/lib/qt/lib无法启动 '/home/kcd/Android/Sdk/tools/qemu/linux-x86/qemu-system-x86_64':否 这样的文件或目录

ERROR:./android/qt/qt_setup.cpp:33:Qt library not found at /home/kcd/Android/Sdk/tools/lib/qt/lib Could not launch '/home/kcd/Android/Sdk/tools/qemu/linux-x86/qemu-system-x86_64': No such file or directory

我检查了此目录,发现路径名是 .../qemu/linux-x86_64/qemu-system_x86_64 ,而不是 .../qemu/linux-x86/qemu -system_x86_64

I checked this directory and notices that the path name is .../qemu/linux-x86_64/qemu-system_x86_64 and not .../qemu/linux-x86/qemu-system_x86_64

所以我重命名了目录,以匹配正确的路径. 尝试启动模拟器后,它会显示以下错误消息:

So I renamed the direcory to match the correct path. After trying to launch the emulator, it puts this error message:

错误:./android/qt/qt_setup.cpp:33:在以下位置找不到Qt库 /home/kcd/Android/Sdk/tools/lib/qt/lib

ERROR:./android/qt/qt_setup.cpp:33:Qt library not found at /home/kcd/Android/Sdk/tools/lib/qt/lib

模拟器:警告:VM堆大小 设置为低于硬件指定的最低228MB

emulator: WARNING: VM heap size set below hardware specified minimum of 228MB

此应用程序失败 开始,因为它无法找到或加载Qt平台插件 "xcb".模拟器:警告:将VM堆大小设置为384MB

This application failed to start because it could not find or load the Qt platform plugin "xcb". emulator: WARNING: Setting VM heap size to 384MB

我的系统是Ubuntu 14.04 64位.在更新为Android Studio 2.0之前,一切正常.

My system is Ubuntu 14.04 64 bit. Before the update to Android Studio 2.0, everything worked fine.

任何人都可以帮忙吗?

在测试了Anurag Maheshwari的答案后,该错误消失了. 然后,我收到以下错误消息:

After testing the answer from Anurag Maheshwari, this error disappeared. Then I have got the following error message:

无法在模拟器中启动AVD.输出:仿真器:警告:VM堆大小 设置为低于硬件指定的最低228MB仿真器:警告: 将VM堆大小设置为384MB仿真器:错误:无法加载OpenGLES 仿真库[lib64OpenglRender]:lib64OpenglRender.so:Kann die 共享对象的日期:日期的日期 端口5554上的gefunden控制台,端口5555仿真器上的ADB:错误:可以 不初始化OpenglES仿真,请使用'-gpu off'禁用它.

Cannot launch AVD in emulator. Output: emulator: WARNING: VM heap size set below hardware specified minimum of 228MB emulator: WARNING: Setting VM heap size to 384MB emulator: ERROR: Could not load OpenGLES emulation library [lib64OpenglRender]: lib64OpenglRender.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden console on port 5554, ADB on port 5555 emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.

我尝试使用'-gpu off',但是它仍然不想启动...

I tried to use '-gpu off', but it still does not want to start...

推荐答案

我遇到了同样的问题. 可能是由于您的64位linux与您安装的avd不匹配. 尝试从您的Android SDK位置-> ../Android/SDK/tools/lib64/qt/lib复制'lib'文件夹到../Android/Sdk/tools/lib/qt/lib 它对我有用.

I got the same problem. It may be occur due to your 64bit linux didn't match to the avd you installed. Try copy 'lib' folder from your Android sdk location -> ../Android/Sdk/tools/lib64/qt/lib to ../Android/Sdk/tools/lib/qt/lib It worked for me.

这篇关于将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行-找不到Qt库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆