首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Ubuntu18.04上运行Android arm64或armeabi-v7a模拟器?

如何在Ubuntu18.04上运行Android arm64或armeabi-v7a模拟器?
EN

Stack Overflow用户
提问于 2019-10-03 18:54:35
回答 1查看 1.6K关注 0票数 1

我正在尝试在Ubuntu 18.04上设置一个Android模拟器。我已经设法让Android Studio运行起来了。但是,它只能运行支持ABI/CPU x86的仿真器。如果我尝试使用arm64或armeabi-v7a的虚拟设备运行仿真器,仿真器就会冻结。以下是日志:

代码语言:javascript
运行
复制
12:54 PM Emulator: statvfs('/home/pc/.android/avd/Pixel_2_API_25_32b.avd/snapshots/default_boot/ram.img') failed: No such file or directory

12:54 PM Emulator: Warning: QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.android-studio', please create it with 0700 permissions. ((null):0, (null))

12:54 PM Emulator: Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))

12:54 PM Emulator: ERROR: Unable to access '/home/pc/.emulator_console_auth_token': emulator console will not work

12:54 PM Emulator: Warning: restoring GLES1 context from snapshot. App may need reloading.

12:54 PM Emulator: emulator: WARNING: IniFile.cpp:235: Failed to open .ini file /home/pc/.android/emu-update-last-check.ini for writing.

我需要这些配置,因为我想使用的APK不支持x86架构。

有没有人知道如何在Android Studio for Ubuntu18上运行这些规格的虚拟设备,或者有没有其他方法可以运行不兼容x86的应用程序包?

为了给你一个完整的描述,我想用Appium (或其他类似的软件)自动化测试。因此,如果除了Android Studio之外,还有另一种可靠的方式来运行arm64或armeabi-v7a仿真器,然后这些仿真器就可以被Appium (或其他自动化软件)访问,那就更好了。我试过Anbox,但它总是很慢。

非常感谢!

EN

回答 1

Stack Overflow用户

发布于 2021-06-16 08:28:23

使用docker在Ubuntu21.04的arm64上运行模拟器。像redroid这样的现成docker镜像很少

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58217644

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档