Cordova android emulation - Error: Cannot read property 'semver' of null

前端 未结 6 882
醉梦人生
醉梦人生 2021-01-30 13:30

Trying to emulate Android app with cordova, but get this error message:

Built the following apk(s): /Users/jnj/cordova/hello/platforms/android/build/outputs/apk/andr

6条回答
  •  误落风尘
    2021-01-30 14:08

    This is due using an emulator with an unstable Developer Preview API version.

    You probably have a device using API 27 (Android 8.1).

    Open your AVD, remove that device and re-run.

    It's also useful to use --target when launching the emulator if you have more than one.

    To get a list of available names to use, call the emulate command with --list

提交回复
热议问题