The problem of creating AVD on the command line in Windows XP

I am starting Android development. I followed the procedure listed on developers.google.com. for installation. I tried to create an AVD (Android Virtual Appliance) through the command path. I performed on the command line.

android create avd --target 2 --name my_avd 

But the error comes " Error: Target id is not valid. Use 'android.bat list targets' to get the target ids ."

After running android.bat goals of the list are displayed empty. I can not understand the problem as I have already set the path.

+4
source share
4 answers

The problem is resolved. windows by default do not load api for the Android virtual device. we need to manually start downloading them. perform the following procedure:

  • go to android List of sdk items you extracted. to the tool folder

  • un android batch file will be downloaded api. Here go to settings and check "Force https to extract from http".

  • Then go to availa packages and get the available link and install it.

    after completing this procedure, all of the above errors will be resolved.

+2
source

I think you use “android create avd -n xxx -t 2” to create the AVD and use the “list targets android.bat” to find the result of the creation. You should use "avdes list avds" to display AVD. Goals differ from virtual devices.

+1
source

You cannot have set goals. Check the available packages in the sdk manager and install some of them.

+1
source

According to dtmilano, install some packages [images of different versions of Android OS]. This is an easy step to skip.

FYI: here are the step-by-step steps for installing the application on the emulator using cmd line tools on MacOS (I assume win64 is equivalent): http://richardboardman.com/2011/07/100-days-of-tech-day-1- android-dev-tools /

0
source

Source: https://habr.com/ru/post/1300823/


All Articles