How can I copy a machine from android studio to another machine, without needing to install android studio?

Asked

Viewed 315 times

0

I installed the android studio on my machine and created a machine with android to emulate the applications, but now I want to take only this machine that I created and put on another computer, I’m trying, but when I try to run it happens:

C:\Users\usuario\Desktop\Sdk\emulator>emulator.exe -avd whatsapp
PANIC: Unknown AVD name [whatsapp], use -list-avds to see valid list.
ANDROID_SDK_HOME is defined but there is no file whatsapp.ini in $ANDROID_SDK_HOME\avd
(Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME\avd and $HOME\.android\avd)

If executed:

C:\Users\usuario\Desktop\Sdk\emulator>emulator.exe -list-avds

Returns nothing.

I added in the environment variables ANDROID_SDK_HOME with the new path where the machine is, but presents the same error above.

inserir a descrição da imagem aqui

If I run this same command in the default folder of android studio that is installed on my machine, works normally.

How can I copy a machine from android studio to another machine, without needing to install android studio?

I’m looking for something like:

emulator.exe -avd <caminho_da_maquina>

1 answer

1


For pattern Avds are created in $HOME/.android/avd. In Windows it’s probably something like C:\Users\MeuUsuario\.android\avd.

It is possible to create the environment variable $ANDROID_AVD_HOME to change the default path.


Saved Avds are composed of a directory and a file .ini. If you have an AVD called whatsapp, there will be:

  • a directory $HOME/.android/avd/whatsapp.avd
  • an archive $HOME/.android/avd/whatsapp.ini

To move AVD between machines, just copy these two items.

To run AVD on another machine, the same system image that was used to create AVD must be installed on it.

  • I’ll try it on the other machine.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.