使用 Cordova CLI,我设置了一个应用程序并构建它:
cordova create hi com.example.hi Hi
cd hi
cordova platform add android
cordova build android
我运行 Genymotion 并启动一个名为“api9”的设备。我运行 Android 调试桥adb devices
,它显示为
192.168.8.101:5555
我尝试启动应用程序,cordova emulate android
但我得到:
Error: An error occurred while emulating/deploying the android project. ...spawn ENOENT
但是,启动 Android 虚拟设备管理器并启动模拟设备;cordova emulate android
作品和清单adb devices
;
192.168.8.101:5555
emulator-5554
我应该怎么做才能使 Cordova 通过 Genymotion 设备进行仿真?