【发布时间】:2018-11-16 18:28:46
【问题描述】:
我正在尝试安装一个全新的 cordova 项目,但我无法让它在模拟器中运行。当我运行cordova emulate android 时,它给了我以下错误:
(node:4822) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: adb: Command failed with exit code 1 Error output: error: device still connecting
它确实启动了模拟器,但没有任何反应。我在我的 config.xml 中添加了这个首选项:
<platform name="android">
<allow-intent href="market:*" />
<preference name="loadUrlTimeoutValue" value="700000" />
</platform>
【问题讨论】: