简体   繁体   English

Android Studio 模拟器和 AMD CPU

[英]Android Studio emulator and AMD CPU

I can't run my app on standard Nexus 5 emulator.我无法在标准 Nexus 5 模拟器上运行我的应用程序。 It seems it requires Intel HAXM but i have an AMD processor.似乎它需要 Intel HAXM,但我有一个 AMD 处理器。 So how can i use the emulator without buying an Intel processor (or installing Linux)?那么如何在不购买英特尔处理器(或安装 Linux)的情况下使用模拟器?

If you have an AMD processor, you can download an ARM image, but it is super slow on x86 platforms.如果您有 AMD 处理器,则可以下载 ARM 映像,但在 x86 平台上速度非常慢。

The x86 image does not work with AMD CPUs, because the x86 image needs HAXM installed which needs VT-X support, and only Intel CPUs support it. x86 镜像不适用于 AMD CPU,因为 x86 镜像需要安装需要 VT-X 支持的 HAXM,并且只有 Intel CPU 支持它。

So you can download the Genymotion emulator, which supports both VT-X & AMD-V technology.因此,您可以下载支持 VT-X 和 AMD-V 技术的 Genymotion 模拟器。

Genymotion is super fast. Genymotion 超级快。 Other than hooking your physical device up to test, it's the next best thing.除了连接物理设备进行测试之外,这是下一个最好的事情。 Android Studio emulator is not efficient for testing. Android Studio 模拟器的测试效率不高。 I am using the personal version of Genymotion.我正在使用 Genymotion 的个人版本。

With the latest API 30, even x86 emulators are very fast in AMD processors.使用最新的 API 30,即使是 x86 模拟器在 AMD 处理器中也非常快。 For this in Windows, you follow this below.为此,在 Windows 中,请遵循以下操作。

You absolutely don't need Intel HAXM (Hardware Accelerated Execution Mode) in AMD processors, because they are AMD processors.在 AMD 处理器中您绝对不需要 Intel HAXM(硬件加速执行模式),因为它们是 AMD 处理器。

Just enable (check) Windows Hypervisor Platform in Windows features as shown below.只需在 Windows 功能中启用(选中)Windows Hypervisor Platform,如下所示。 在此处输入图片说明

Now, you can start emulators.现在,您可以启动模拟器。 No need of Intel HAXM.不需要英特尔 HAXM。

Here is official link: https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html这是官方链接: https : //android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html

You can run the ARM (non Intel) emulator image.您可以运行 ARM(非 Intel)仿真器映像。 From your list, just choose a non Intel emulation.从您的列表中,只需选择一个非英特尔仿真。

You should give ARC Welder a try if all you just want to do is test an app, without all the distractions from an emulator.如果您只想测试应用程序,而不受模拟器的干扰,那么您应该尝试使用ARC Welder It works with the Google App Runtime For Chrome它适用于 ChromeGoogle App Runtime

You simply feed it your app's apk file and it generates a folder containing your app's resources then it launches the app.您只需将您的应用程序的 apk 文件提供给它,它就会生成一个包含您的应用程序资源的文件夹,然后启动该应用程序。 Its still in heavy development, so not all apps work yet, but its really worth giving a try.它仍在大量开发中,因此并非所有应用程序都可以运行,但它确实值得一试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM