title: Ionic 4: No emulator images (avds) found
body: <p><strong>I'm trying to emulate my ionic 4 app into Android Emulator
  so I run the command:</strong></p>
  <pre><code>sudo ionic cordova emulate android --prod 
  </code></pre>
  <p><strong>I get this error:</strong></p>
  <pre><code>BUILD SUCCESSFUL in 1s
  42 actionable tasks: 42 up-to-date
  Built the following apk(s): 
      /Users/esham/Desktop/magazine-app/platforms/android/app/build/outputs/apk/debug/app-debug.apk
  Checking Java JDK and Android SDK versions
  ANDROID_SDK_ROOT=undefined (recommended setting)
  ANDROID_HOME=/Users/esham/Library/Android/sdk (DEPRECATED)
  No emulator images (avds) found.
  1. Download desired System Image by running: /Users/esham/Library/Android/sdk/tools/android sdk
  2. Create an AVD by running: /Users/esham/Library/Android/sdk/tools/android avd
  HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver
  
  [ERROR] An error occurred while running subprocess cordova.
          
          cordova emulate android exited with exit code 1.
          
          Re-running this command with the --verbose flag may provide more information.
  </code></pre>
  <h1>But I have 3 ADV on ADV Manager!!</h1>
  <p>And I could run any one of them by terminal for examble <code>emulator @Pixel_2_API_26</code></p>
  <p><strong>These the list of ADV I have:</strong> <code>emulator -list-avds</code></p>
  <p>Pixel_2_API_26</p>
  <p>Pixel_2_API_28</p>
  <p>Pixel_3_API_28</p>
  <p><strong>When I'm running command <code>android list avd</code> getting:</strong></p>
  <pre><code>The following Android Virtual Devices could not be loaded:
      Name: Pixel_3_API_28
      Path: /Users/esham/.android/avd/Pixel_3_API_28.avd
     Error: Google pixel_3 no longer exists as a device
  ---------
      Name: Pixel_2_API_26
      Path: /Users/esham/.android/avd/Pixel_2_API_26.avd
     Error: Google pixel_2 no longer exists as a device
  ---------
      Name: Pixel_2_API_28
      Path: /Users/esham/.android/avd/Pixel_2_API_28_1.avd
     Error: Google pixel_2 no longer exists as a device
  </code></pre>
  <h1>So it doesn't make any sense! I have 3 ADV with all supported levels by cordova and keep saying <code>No emulator images (avds) found.</code></h1>
  <p>These my environment setup on macOS:</p>
  <pre><code>export ANDROID_SDK=$HOME/Library/Android/sdk
  export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
  export ANDROID_HOME=&quot;$HOME/Library/Android/sdk&quot;
  export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  export PATH=$PATH:$ANDROID_HOME/tools
  export PATH=$PATH:$ANDROID_HOME/tools/bin
  export PATH=$PATH/:$ANDROID_HOME/platform-tools
  </code></pre>