“不幸的是,API演示已停止” - PhoneGap未改变HelloWorld应用程序不运行 [英] "unfortunately API demo has stopped" - PhoneGap unaltered HelloWorld app does not run

查看:89
本文介绍了“不幸的是,API演示已停止” - PhoneGap未改变HelloWorld应用程序不运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:我是一个总计Cordova / PhoneGap新手(前ActionScript程序员)

Note: I am a total Cordova/PhoneGap newbie (former ActionScript programmer)

您好。我正在尝试执行此101教程:

Hello. I am trying to run this 101 tutorial:

http://docs.phonegap.com/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

它工作正常,直到部署到模拟器部分,其中我运行这行:

It works fine until the Deploy to Emulator section, where I run this line:

$ cordova emulate android

我的模拟器打开,但只显示以下消息:

My emulator opens, but just displays the following message:

Unfortunately, API demo has stopped

我已经阅读所有的帖子在这里,不幸的是,API演示已停止在他们,没有什么可悲的。

I have read all the posts here with "unfortunately API demo has stopped" in them, to no avail sadly. Being 100% new to this, I would have absolutely no idea where to start debugging.

如果它有帮助:


  1. 当模拟器启动时,phone显示一个屏幕,显示连接您的充电器,我通过单击菜单硬件按钮,此时出现遗憾...消息;和

  2. 没有HelloWorld.xml文件。


推荐答案

I FIXED IT !!!

I FIXED IT!!!

config.xml缺少此行:

config.xml was missing this line:

<content src="index.html" />

这篇关于“不幸的是,API演示已停止” - PhoneGap未改变HelloWorld应用程序不运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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