中使用不同的模拟器

中使用不同的模拟器

本文介绍了如何在 Android Studio 中使用不同的模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 的 qemu 模拟器中构建时遇到问题.还有一些其他的 Android 模拟器.如何配置 Android Studio 以使用不同的模拟器?我使用leapdroid 模拟器

I have issues with the build in qemu emulator in Android Studio. There are some other Android emulators out there. How to configure Android Studio to use a different emulator? I use leapdroid emulator http://www.leapdroid.com to run apps and games.

解决方案

Leapdroid is compatible with Android adb, i.e., using the same port numbers starting with 5555, so there is really nothing special to do, pretty much same as what you do with the built-in Android emulator. If you run "adb devices", you will see a device named as "emulator-5554".

Here are the steps:

  1. Launch Leapdroid vm, which contains android 4.4.4 image
  2. Launch Android Studio, and click Android emulator tab, a device named as "Emulator unknown 4.4.4" will show up inside the device list, and you can select it.
  3. You should be able to see the logcat, and debug your Android app, etc.

Make sure that you close all other emulators first, in case there are conflicts.

I've also attached two screenshots for clarifications:

这篇关于如何在 Android Studio 中使用不同的模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 21:16