Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed android emulator inside Android Studio?

I know that an embedded emulator has been introduced in Android Studio 4.1+. I am not able to see options to enable it.

like image 679
bikram Avatar asked Nov 23 '20 03:11

bikram


People also ask

What is Android Emulator in Android Studio?

The Android Emulator simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device.

Where is the AVD Manager in Android Studio?

To launch the AVD Manager: In Android Studio, select Tools > Android > AVD Manager, or click the AVD Manager icon in the toolbar.


2 Answers

The changelog says that you need to enable it manually. Follow these steps:

Steps

  1. Open Android Studio and goto Preference / Settings

Open Android Studio and goto Preference

  1. Expand the Tools tab and goto emulator
  2. Check 'Launch in a tool window'

Expand the Tools tab and goto emulator then check 'Launch in a tool window'

like image 135
bikram Avatar answered Sep 18 '22 15:09

bikram


Apart from the previous, if you dont't see the emulator tab in IDE: I found that adding a "<module fileurl="file://$PROJECT_DIR$/android/..." line in Project directory, file .idea/modules.xml the tab appears:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
    <component name="ProjectModuleManager">
        <modules>
            <module fileurl="file://$PROJECT_DIR$/renal_calc_flutter.iml" filepath="$PROJECT_DIR$/renal_calc_flutter.iml" />
            <module fileurl="file://$PROJECT_DIR$/android/renal_calc_flutter_android.iml" filepath="$PROJECT_DIR$/android/renal_calc_flutter_android.iml" />
        </modules>
     </component>
 </project>
like image 24
Joan Tondo Avatar answered Sep 17 '22 15:09

Joan Tondo