How can I copy an android studio machine to another machine, without having to install android studio?

0

I installed android studio on my machine and created an android machine to emulate the applications, but now I want to get 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 I run:

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

Does not return anything.

I added the ANDROID_SDK_HOME environment variables to the new path where the machine is, but it has the same error as above.

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

How can I copy an android studio machine to another machine without installing android studio?

I'm looking for something like:

emulator.exe -avd <caminho_da_maquina>
    
asked by anonymous 19.09.2017 / 21:41

1 answer

1

By default the AVDs are created in $HOME/.android/avd . In Windows it's probably something like C:\Users\MeuUsuario\.android\avd .

You can create the environment variable $ANDROID_AVD_HOME to change the default path.

The saved AVDs consist of a directory and a .ini file. If you have an AVD named whatsapp , there will be:

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

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

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

    
20.09.2017 / 14:18