Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/202.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何在Ubuntu 18.04上运行安卓arm64或armeabi-v7a模拟器?_Android_Android Studio_Android Emulator_Ubuntu 18.04 - Fatal编程技术网

Android 如何在Ubuntu 18.04上运行安卓arm64或armeabi-v7a模拟器?

Android 如何在Ubuntu 18.04上运行安卓arm64或armeabi-v7a模拟器?,android,android-studio,android-emulator,ubuntu-18.04,Android,Android Studio,Android Emulator,Ubuntu 18.04,我正试图在Ubuntu18.04上安装一个Android模拟器。我已经设法让Android Studio运行起来。但是,它只能运行支持ABI/CPU x86的模拟器。如果我尝试为arm64或armeabi-v7a使用虚拟设备运行模拟器,那么模拟器就会冻结。以下是日志: 12:54 PM Emulator: statvfs('/home/pc/.android/avd/Pixel_2_API_25_32b.avd/snapshots/default_boot/ram.img') failed: N

我正试图在Ubuntu18.04上安装一个Android模拟器。我已经设法让Android Studio运行起来。但是,它只能运行支持ABI/CPU x86的模拟器。如果我尝试为arm64或armeabi-v7a使用虚拟设备运行模拟器,那么模拟器就会冻结。以下是日志:

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体系结构

是否有人知道如何让这些规格的虚拟设备在安卓Studio for Ubuntu18上工作,或者是否有其他方法运行不兼容x86的APK

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


非常感谢

使用docker在ubuntu 21.04的arm64上运行emulator。
很少有现成的docker映像可用,比如Ubuntu21.04上arm64上运行emulator时使用的docker。 几乎没有现成的docker图像可用,例如