尝试使用phonegap将android应用程序运行到模拟器上时出错,我该如何解决?

ole*_*tob 7 ubuntu android android-emulator cordova

我在Ubuntu 12.04上安装了phonegap 3.0.0-0.14.3.

我想用android模拟器运行应用程序.当我跑步时,phonegap run android我得到以下内容:

[phonegap] compiling Android...
[phonegap] successfully compiled Android app
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
   [error] An error occurred while emulating/deploying the android project.Warning : [ --debug | --release | --nobuild ] not specified, defaulting to --debug
Cleaning project...
Run Code Online (Sandbox Code Playgroud)

该应用程序运行到设备没有问题.

请帮忙!

ole*_*tob 19

最后我找到了问题的答案.

我收到此错误是因为我没有创建一个Android虚拟设备.创建一个之后,一切正常.

在命令提示符下输入:android avd要显示de AVD Manager窗口,则可以创建android虚拟设备.

我希望这对某人有帮助.