Phonegap hello world 应用程序无法通过 CLI 在模拟器中启动 [英] Phonegap hello world app could not launch in emulator through CLI

查看:30
本文介绍了Phonegap hello world 应用程序无法通过 CLI 在模拟器中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 phonegap 并创建了简单的项目(hello world).我正确安装了 jdk 和 sdk.路径已设置.我想在模拟器中启动我的应用程序.在此结果出现一堆语句后,我运行命令cordova run android"

I installed phonegap and created simple project(hello world). I installed jdk and sdk correctly. Paths are set. I want to launch my app in emulator. I run command "cordova run android" after a bunch of statements at the this results comes

构建成功总时间:14秒构建了以下 apk:D:\phonegap\myapp\platforms\android\ant-build\CordovaApp-debug.apk警告:未指定目标,正在部署到模拟器emulator-5554".在模拟器上安装应用程序...使用 apk:D:\phonegap\myapp\platforms\android\ant-build\CordovaApp-debug.apk正在启动应用程序...启动成功

BUILD SUCCESSFUL Total time: 14 seconds Built the following apk(s): D:\phonegap\myapp\platforms\android\ant-build\CordovaApp-debug.apk WARNING : No target specified, deploying to emulator 'emulator-5554'. Installing app on emulator... Using apk: D:\phonegap\myapp\platforms\android\ant-build\CordovaApp-debug.apk Launching application... LAUNCH SUCCESS

但该应用程序无法在模拟器中启动.我正在使用窗户.我不知道该怎么办.请帮忙

But the app does not launches in emulator. I am using windows. I don't know what to do. Please help

推荐答案

我终于找到了解决办法.我安装了 bluestack 并启动了我的应用程序.当我运行命令cordova run android"时,在构建过程之后我的应用程序会自动在蓝色堆栈中启动.我不知道如何工作.

Finally I found the work around. I installed the bluestack and it launched my app. when I run the command "cordova run android", after the build making process my app is automatically launched in blue stack. I don't know how but working.

这篇关于Phonegap hello world 应用程序无法通过 CLI 在模拟器中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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