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

前端 未结 6 825
醉梦人生
醉梦人生 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:02

    This is a bug in cordova-android's list_images method, it crashes when it encounters an android version on your system that's not in its list: https://github.com/apache/cordova-android/pull/422

    You can apply the fix manually in platforms/android/cordova/emulator.js within your project

提交回复
热议问题