Skip to content

When including Oreo AVDs parseEmulatorsAvds crashes #10

@bsmithb2

Description

@bsmithb2

Hi,

When using the nativescript demo application, when I attempt to run tests using nativescript-dev-appium, the application crashes using parseEmulatorsAvds() in the AndroidController class.

Steps to repro:

  1. Get hold of the Android Accelerated Oreo avd. You do this by installing Visual Studio for Mac Community Edition, and installing their default device.
  2. Open the test repo https://github.com/bsmithb2/nativescript-mobile-bug
  3. Run the repo in VS Code (or run.ts in anywhere really.
  4. parsePlatforms on my Mac has android-27 and android-28 installed
  5. parseEmulatorsAvds() crashes "cannot read property 'sdk' of undefined"

Cause: target=Google Inc.:Google Play:27 is not parsable compared to what it's expecting.
Expected: ignore the avd, or parse differently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions