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):
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.
AndroidSDKPath
AndroidSDKPath\emulator\
AndroidSDKPath\tools\
AndroidSDKPath\platform-tools
Set the ANDROID_HOME variable to AndroidSDKPath.
Restart the machine and try the command if the emulator configured is ARM based.
emulator.exe -avd <avdname> -port 5554
Cross check if the right emulator is being picked from right SDK folder by using the below command in command prompt.
Windows:
where emulator
MAC:
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.
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.
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.
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.
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.