Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use a different emulator in Android Studio

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.

like image 376
Out of Rain Avatar asked Jun 13 '16 18:06

Out of Rain


People also ask

How can I run multiple emulators on Android?

Ok GoTo Studio menu bar at the top and go to tools->android->AVD Manager then a new pop up would appear for new device. now create a new one and then again press run button.

How do I open an emulator in Android Studio?

To start the Android Emulator and run an app in your project: In Android Studio, create an Android Virtual Device (AVD) that the emulator can use to install and run your app. In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run .

How do I change my API emulator?

In Android Studio 3.5, need to click on the Emulator name which is the left option of Run 'app' button. You can select specific Emulator of your choice or multiple Emulator as well.


2 Answers

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 connecting to Leapdroid VM Leapdroid vm running

like image 56
huisinro Avatar answered Oct 24 '22 22:10

huisinro


There are options like:

Genymotion: https://www.genymotion.com/
config with Androi Studio here

Visual Studio Emulator for Android https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
config with Android Studio here

I hope this help you

like image 27
dagope Avatar answered Oct 24 '22 23:10

dagope