科尔多瓦android仿真-错误:无法读取null的属性"semver" [英] Cordova android emulation - Error: Cannot read property 'semver' of null

查看:78
本文介绍了科尔多瓦android仿真-错误:无法读取null的属性"semver"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用cordova模拟Android应用,但出现以下错误消息:

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

内置以下apk: /用户/jnj/cordova/hello/platforms/android/build/outputs/apk/android-debug.apk ANDROID_HOME =/用户/jnj/库/Android/sdk JAVA_HOME =/库/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home

Built the following apk(s): /Users/jnj/cordova/hello/platforms/android/build/outputs/apk/android-debug.apk ANDROID_HOME=/Users/jnj/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home

错误:无法读取null的属性"semver"

有解决方案吗?

推荐答案

这是由于使用了带有不稳定Developer Developer API版本的仿真器所致.

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

您可能有一台使用API​​ 27(Android 8.1)的设备.

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

打开您的AVD,删除该设备,然后重新运行.

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

如果启动多个仿真器,则在启动仿真器时使用--target <emulator_name>也很有用.

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

要获取可用名称的列表,请使用--list

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

这篇关于科尔多瓦android仿真-错误:无法读取null的属性"semver"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆