How do I specify the AVD's generated in android studio in Visualizer and launch the emulator ( Since google has deprecated the separate AVD manager )

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Visualizer does avdlist lookup which is empty. How to specify the path to the AVDs generated in android studio.

@Stephvnie Olivew​ , To launch the AVD you created, do the following(Verify):

  1. In your computer, add the following entries to the user path variable as part of the environment variables in the order of preference specified below. Prefix the entries to path.
    1. AndroidSDKPath
    2. AndroidSDKPath\emulator\
    3. AndroidSDKPath\tools\
    4. AndroidSDKPath\platform-tools
  2. Set the ANDROID_HOME variable to AndroidSDKPath.
  3. Restart the machine and try the command if the emulator configured is ARM based.
  4. emulator.exe -avd <avdname> -port 5554
  5. Cross check if the right emulator is being picked from right SDK folder by using the below command in command prompt.
  6. Windows:
  7. where emulator
  8. MAC:
  9. which emulator

--> If the AndroidSDKPath/emulator folder and the AndroidSDKPath/tools folder contains the emulator.exe in the newly downloaded SDK, make sure the one under emulator is picked up.

The avdlist is still empty. Checked all the above including path variable and ANDROID_HOME, AndroidSDKPath/emulator is higher in the path ordering.

Hi @Stephvnie Olivew,

Check the folder <USER HOME FOLDER>/.android/avd. It should contain the avd's you created in Android Studio. To my knowledge, Visualizer picks the available avd's from this folder.

Hi,

The avd's exist in .android however visualizer is not locating and picking them up. Even after replicating the avd directory in the search paths the avdlist in visualizer is still empty.

**Image removed for security reasons**

Hey NS, did you try creating an AVD from Visualizer?

Click on Create AVD.

Then when the AVD manager opens, you can select the one which you have already made.

Just try it and get back if it does not work.

Hello @Stephvnie Olivew​

Check if you have correct path provided for the emulator.exe. The correct path is mentioned in the screenshot below. To check that follow these steps:

  1. Open Visualizer
  2. CLick Window tab in the Menu bar.
  3. Navigate through Window -> Preferences -> Kony Visualizer -> Emulators -> Mobile -> Android.
  4. Check whether the path given in the location is correct along with the other details.
  5. Save the details.

The correct path is Android\Sdk\emulator\emulator.exe

**Image removed for security reasons**

Hope this solves your issue.

@Bewnvdette Hvwdvcwe​ I have tried the steps that you have said but its not working.any other solutions for this

Hi,

You are probably using an older android sdk version. The older android sdk version ( 25.0.0 and earlier ) would allow you to create avd's from Visualizer. However, with later versions creating AVD's in Visualizer is not possible.

Hi,

The emulator.exe is picked up from the correct path.

Hi,

There are three locations for avd lookup by the Android emulator. These are

  1. ANDROID_AVD_HOME
  2. ANDROID_SDK_HOME/avd
  3. $HOME/.android/avd

Would these be the same for Visualizer as well. Currently, Visualizer is unable to locate the avd's.

Hello folks,

Any further thoughts on this ? Am still unable to specify AVD's generated in Android Studio in visualizer and launch the emulator in visualizer.

Hello folks,

Just to be more specific, I have been able to launch the emulator/avd's from android studio and cmdline. It would be so much simpler to invoke directly from Visualizer.

If you did a standard installation your sdk path needs to be set like this and it should resolve this:

$HOME/Library/Android/sdk

Whatever is in the $HOME variable needs to be replaced by the text and set in the Build settings Android Home input field in Visualizer

I came across this issue recently and the default path used by Visualizer is useless.

@Unv Hendewson​ can you please take a look. Thanks!

@Deiwdwe Wvtson​ @Elizvxeth Poole​ Would you please check?

@Wvwwen Olivew​ ,

Visualizer doesn't use any default path for Android Home. It always depends on user provided android home to execute avd commands.

So as long as user has provided right android home path and that contains proper android SDK, there should not be any issues seen.