Cordova无法在Android模拟器上启动应用程序

时间:2015-01-15 11:57:34

标签: android cordova netbeans android-emulator

我安装了Cordova 4.2.0并尝试在Android模拟器上启动我的cordovaApp。 我收到此错误消息:

Failed to launch app on emulator: Failed to install apk to emulator: Error executing "adb -s
emulator-5556 install -r "C:\xampp\htdocs\CordovaApp\platforms\android\ant-build\CordovaApp-
debug.apk"": failed to copy 'C:\xampp\htdocs\CordovaApp\platforms\android\ant-build\CordovaApp- 
debug.apk' to '/data/local/tmp/CordovaApp-debug.apk': No such file or directory

Command finished with error code 8: C:\xampp\htdocs\CordovaApp\platforms\android\cordova\run.bat
--emulator
Error: C:\xampp\htdocs\CordovaApp\platforms\android\cordova\run.bat: Command failed with exit
code 8
at ChildProcess.whenDone 
(C:\Users\windows8new\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-  
lib\src\cordova\superspawn.js:135:23)
  at ChildProcess.emit (events.js:98:17)
  at maybeClose (child_process.js:766:16)
  at Process.ChildProcess._handle.onexit (child_process.js:833:5)
C:\xampp\htdocs\CordovaApp\nbproject\build.xml:275: exec returned: 1

我是新手,所以我不知道该怎么做。有人能帮助我吗? 非常感谢你。

0 个答案:

没有答案