Created
October 16, 2014 20:33
-
-
Save simonprickett/62cdfdb8677bdc3277c5 to your computer and use it in GitHub Desktop.
Cordova CLI Issues with Project ID in Cordova 3.6.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It seems like in Cordova 3.6.3 creating an app now requires a namespace with a . in it. | |
No id specified, works, note io.cordova is prefixed onto id by the CLI: | |
simon$ cordova -version | |
3.6.3-0.2.13 | |
simon$ cordova create doge | |
Creating a new cordova project with name "HelloCordova" and id "io.cordova.hellocordova" at location "/Users/simon/projects/doge" | |
simon$ cd doge | |
simon$ cordova platform add android | |
Creating android project... | |
Creating Cordova project for the Android platform: | |
Path: platforms/android | |
Package: io.cordova.hellocordova | |
Name: HelloCordova | |
Android target: android-19 | |
Copying template files... | |
Project successfully created. | |
id specified, has a . in it, works: | |
simon$ cordova create suchproject doge.suchproject | |
Creating a new cordova project with name "HelloCordova" and id "doge.suchproject" at location "/Users/simon/projects/doge/suchproject" | |
simon$ cd suchproject | |
simon$ cordova platform add android | |
Creating android project... | |
Creating Cordova project for the Android platform: | |
Path: platforms/android | |
Package: doge.suchproject | |
Name: HelloCordova | |
Android target: android-19 | |
Copying template files... | |
Project successfully created. | |
id specified, has no . in it, fails: | |
simon$ cordova create sobroken doge | |
Creating a new cordova project with name "HelloCordova" and id "doge" at location "/Users/simon/projects/doge/suchproject/sobroken" | |
simon$ cd sobroken | |
simon$ cordova platform add android | |
Creating android project... | |
/Users/simon/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126 | |
throw e; | |
^ | |
Package name must look like: com.company.Name | |
Error: /Users/simon/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/create: Command failed with exit code 8 | |
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) | |
at ChildProcess.EventEmitter.emit (events.js:98:17) | |
at maybeClose (child_process.js:735:16) | |
at Process.ChildProcess._handle.onexit (child_process.js:802:5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment