0

I'm working on a mobile app that is created using phonegap. Instead of IDE I'm using the command-line to run the android emulator.

This is my project structure,

enter image description here

On running the emulator it shows up but I see couple of errors in the console.

enter image description here

I don't have the files icon.png and the other one in the src folder. Instead of looking those things in the www folder it is some-way referring in the src. I've no clue why. How can I solve this issue?

VJAI
  • 32,167
  • 23
  • 102
  • 164
  • You need to run cordova/phonegap commands from the project folder i.e D:\Personal\Safe\src – frank Aug 06 '14 at 11:45
  • You mean I need to run the "cordova emulate android" from D:\Personal\Safe? – VJAI Aug 06 '14 at 11:47
  • Yes if that is your project folder. – frank Aug 06 '14 at 11:48
  • D:\Personal\Safe\src is the project folder. I still see the errors if I run from there. – VJAI Aug 06 '14 at 11:48
  • which directory did you create the project? How did you create the project? The screen shows Project is **"Safe"** so `D:\...\Safe\src` cannot be the project directory. It has to be `D:\...\Safe` – frank Aug 06 '14 at 11:50
  • I run the command "cordova create src com.prideparrot.safe Safe" from the folder D:\Personal\Safe. So I thought all the phonegap components will exists in the src folder. – VJAI Aug 06 '14 at 11:57
  • I got the answer from here http://stackoverflow.com/questions/17820492/how-to-add-app-icon-within-phonegap-projects – VJAI Aug 06 '14 at 12:05

0 Answers0