Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you have the wrong version of Phonegap, mine says <code>0.3.0-0.15.0</code>. I think Fil's fix would definitely have made it into the final build, so I think you must be doing something goofy when installing Phonegap. This is what I did:</p> <p><code>npm install cordova -g</code> (or I guess in your case it would be Phonegap and not cordova.) This will install cordova (or phonegap) globally so that you can access it anywhere with the 'cordova' command. <strong>If you already have it installed try <code>npm update</code> instead of <code>npm install</code></strong>.</p> <p>Navigate to a workspace location, like <code>C:\workspace</code>.</p> <p>Type <code>cordova create MyApp</code> which will create a Cordova project at <code>C:\workspace\MyApp</code>. The workspace will have the following folders:</p> <p><code>/www/</code> - where you place all of your HTML and JavaScript</p> <p><code>/platforms/</code> - this will have folders for android, ios, and any other platforms you add. Your stuff from /www/ will get copied over here in the right place for each platform. This is where you would edit platform-specific files, for example, to change the target-sdk, you want to edit <code>/platforms/android/AndroidManifest.xml</code>. </p> <p><code>/plugins/</code> - this is where all of the plugin code will go when you do <code>cordova plugin add {link}</code>. I can't think of any reason why you should ever edit anything in this folder (but there probably are some good ones.)</p> <p><code>/merges/</code> - any files here will get merged with the corresponding files in <code>/www/</code> and pushed into <code>/platforms/</code>, see the <a href="http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface" rel="nofollow">documentation.</a> </p> <p>After running the create command, you need to add the platforms:</p> <p><code>cd MyApp</code></p> <p><code>cordova platform add android -d</code> - the -d gives us debug info</p> <p><code>cordova build android</code> - this will build the android app and you will see stuff from <code>/www/</code> copied over to <code>/platforms/android/assets/www</code>.</p> <p>One If you are still having issues, did you try what it says in the output, that is, running <code>android</code> from the command line? This will bring up the "Android SDK Manager", make sure that you have the latest version of the SDK installed <strong>as well as</strong> the latest Android SDK Tools and Android SDK Platform-tools (mine are 22.0.5 and 18.0.1, respectively.)</p> <p>There may also be issues if you have never created an Android emulator object (use the AVD manager) although that sounds less likely. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload