将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行 – 找不到Qt库
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行 – 找不到Qt库,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1790字,纯文字阅读大概需要3分钟。
内容图文
![将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行 – 找不到Qt库](/upload/InfoBanner/zyjiaocheng/951/ceb523de9e194056a1c917a5dd81d681.jpg)
今天,我将Android Studio安装升级到2.0版.我手动更新了它(下载.zip,因为更新机制只是告诉我有一个新版本但没有提供在Android Studio中直接更新的可能性).当我现在尝试启动模拟器时,我收到以下错误消息:
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
所以我重命名了direcory以匹配正确的路径.
尝试启动模拟器后,它会显示以下错误消息:
ERROR:./android/qt/qt_setup.cpp:33:Qt library not found at
/home/kcd/Android/Sdk/tools/lib/qt/libemulator: WARNING: VM heap size
set below hardware specified minimum of 228MBThis 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之前,一切正常.
有人可以帮忙吗?
编辑:
在测试了Anurag Maheshwari的答案之后,这个错误消失了.
然后我收到以下错误消息:
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’,但它仍然不想启动…
解决方法:
我遇到了同样的问题.
可能是因为你的64位linux与你安装的avd不匹配.
尝试从Android sdk位置复制’lib’文件夹 – > ../Android/Sdk/tools/lib64/qt/lib to ../Android/Sdk/tools/lib/qt/lib
它对我有用.
内容总结
以上是互联网集市为您收集整理的将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行 – 找不到Qt库全部内容,希望文章能够帮你解决将Android Studio升级到2.0后,Android Emulator无法在Ubuntu上运行 – 找不到Qt库所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。