Joseph Beuys' Mum
Joseph Beuys' Mum

Reputation: 2264

"unfortunately API demo has stopped" - PhoneGap unaltered HelloWorld app does not run


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


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

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.


If it helps:

  1. When the emulator starts, the "phone" shows a screen that reads "Connect your charger" which I get past by clicking the "menu" hardware button, at which point the "Unfortunately..." message appears; and
  2. there is no HelloWorld.xml file.

Upvotes: 1

Views: 1882

Answers (1)

Joseph Beuys' Mum
Joseph Beuys' Mum

Reputation: 2264

I FIXED IT!!!

config.xml was missing this line:

<content src="index.html" />

Upvotes: 3

Related Questions