ERROR : No emulator images (avds) found thrown on windows 8 while opening emulator

前端 未结 11 2025
遇见更好的自我
遇见更好的自我 2021-02-01 15:55

I am having one cordova application made in ionic framework i want to test it in emulator som fired command ionic emulate android and it threw following error Error

11条回答
  •  轮回少年
    2021-02-01 16:17

    Update for mac users using macOS Sierra 10.12.6 and Android Studio for Mac 2.3.3

    Context

    I got this problem not only in Windows, also in Mac.

    This happens when you install the new Android Studio and never created a device and you are trying to run from a terminal. You can get something similar to this:

    Example for cordova,

    cordova emulate android

    ...

    BUILD SUCCESSFUL

    Total time: 1.039 secs Built the following apk(s): /Users/mtro.josevalerio/WebstormProjects/template/platforms/android/build/outputs/apk/android-debug.apk ANDROID_HOME=/Users/mtro.josevalerio/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home Error: No emulator images (avds) found. 1. Download desired System Image by running: /Users/mtro.josevalerio/Library/Android/sdk/tools/android sdk 2. Create an AVD by running: /Users/mtro.josevalerio/Library/Android/sdk/tools/android avd HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

    Options:

    1. You can try to fix it running the commands manually. (hard to do)
    2. Starting Android Studio Tools > Android > Avd Manager
      • Create Virtual Device Pick one device from the list "Nexus 5" Click "Download" Wait till the installation finish. Pick a name for this devices, "Accept the default" Done. You will have at least on device installed

    "Do not forget to check the API version of the device", if you are developing on 23 you can get errors trying to run on a newer device running with 25 and up."

提交回复
热议问题