Error while trying to run android emulator without android studio

1

I installed android studio and studied how to use avd without the need of android studio, I learned how to make the machines via the command line and worked perfectly, but when I went on another machine and downloaded the sdk and executed the same commands to machine is not created and displays this error:

avdmanager create avd -n whatsapp -k "system-images;android-24;google_apis_playstore;x86"
Error: Invalid --tag default for the selected package.

Installed images:

Valid system image paths are:
system-images;android-24;google_apis;armeabi-v7a
system-images;android-24;google_apis_playstore;x86
system-images;android-22;google_apis;x86

Installed features:

sdkmanager.bat --list
Installed packages:
  Path                              | Version | Description                       | Location
  -------                           | ------- | -------                           | -------
  build-tools;26.0.1                | 26.0.1  | Android SDK Build-Tools 26.0.1    | build-tools.0.1\
  emulator                          | 26.1.4  | Android Emulator                  | emulator\
  extras;android;m2repository       | 47.0.0  | Android Support Repository        | extras\android\m2repository\
  extras;google;m2repository        | 58      | Google Repository                 | extras\google\m2repository\
  extras;intel;Ha...ecution_Manager | 6.2.1   | Intel x86 Emulator Accelerator... | extras\intel\Ha...cution_Manager\
  extras;m2reposi...ut-solver;1.0.2 | 1       | Solver for ConstraintLayout 1.0.2 | extras\m2reposi...t-solver.0.2\
  extras;m2reposi...nt-layout;1.0.2 | 1       | ConstraintLayout for Android 1... | extras\m2reposi...t-layout.0.2\
  patcher;v4                        | 1       | SDK Patch Applier v4              | patcher\v4\
  platform-tools                    | 26.0.0  | Android SDK Platform-Tools        | platform-tools\
  platforms;android-22              | 2       | Android SDK Platform 22           | platforms\android-22\
  platforms;android-26              | 2       | Android SDK Platform 26           | platforms\android-26\
  sources;android-24                | 1       | Sources for Android 24            | sources\android-24\
  sources;android-25                | 1       | Sources for Android 25            | sources\android-25\
  system-images;a...google_apis;x86 | 17      | Google APIs Intel x86 Atom Sys... | system-images\a...oogle_apis\x86\
  system-images;a...pis;armeabi-v7a | 17      | Google APIs ARM EABI v7a Syste... | system-images\a...is\armeabi-v7a\
  system-images;a...s_playstore;x86 | 16      | Google Play Intel x86 Atom Sys... | system-images\a..._playstore\x86\
  tools                             | 26.0.1  | Android SDK Tools 26.0.1          | tools\

Here are the features of the machine that installed android studio and the emulator works normally:

sdkmanager.bat --list
Installed packages:
  Path                              | Version | Description                       | Location
  -------                           | ------- | -------                           | -------
  build-tools;26.0.1                | 26.0.1  | Android SDK Build-Tools 26.0.1    | build-tools.0.1\
  emulator                          | 26.1.4  | Android Emulator                  | emulator\
  extras;android;m2repository       | 47.0.0  | Android Support Repository        | extras\android\m2repository\
  extras;google;m2repository        | 58      | Google Repository                 | extras\google\m2repository\
  extras;intel;Ha...ecution_Manager | 6.2.1   | Intel x86 Emulator Accelerator... | extras\intel\Ha...cution_Manager\
  extras;m2reposi...ut-solver;1.0.2 | 1       | Solver for ConstraintLayout 1.0.2 | extras\m2reposi...t-solver.0.2\
  extras;m2reposi...nt-layout;1.0.2 | 1       | ConstraintLayout for Android 1... | extras\m2reposi...t-layout.0.2\
  patcher;v4                        | 1       | SDK Patch Applier v4              | patcher\v4\
  platform-tools                    | 26.0.0  | Android SDK Platform-Tools        | platform-tools\
  platforms;android-22              | 2       | Android SDK Platform 22           | platforms\android-22\
  platforms;android-26              | 2       | Android SDK Platform 26           | platforms\android-26\
  system-images;a...google_apis;x86 | 16      | Google APIs Intel x86 Atom Sys... | system-images\a...oogle_apis\x86\
  system-images;a...s_playstore;x86 | 16      | Google Play Intel x86 Atom Sys... | system-images\a..._playstore\x86\
  tools                             | 26.0.2  | Android SDK Tools                 | tools\
    
asked by anonymous 20.09.2017 / 19:22

1 answer

1

I was using two folders with sdk, deleting one of them all worked again.

    
28.09.2017 / 21:04