Error when running ember cdv platform add android
See original GitHub issueFollowed the instructions, also I have this in my package.json and bower.json:
"name": "com.company.Name",
but getting this, not sure why:
ember cdv platform add android
Running 'cordova platform add android'
Adding android project...
Error: Error validating package name. Package name must look like: com.company.Name
File: /bin/sh
Command failed: cordova platform add android
Error: Command failed: cordova platform add android
at checkExecSyncError (child_process.js:469:13)
at execSync (child_process.js:509:13)
at /home/user/my-ember-cordova/node_modules/ember-cordova/lib/tasks/bash.js:23:7
at lib$rsvp$$internal$$initializePromise (/home/user/my-ember-cordova/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1084:9)
at PromiseExt.lib$rsvp$promise$$Promise (/home/user/my-ember-cordova/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:546:53)
at new PromiseExt (/home/user/my-ember-cordova/node_modules/ember-cli/lib/ext/promise.js:32:8)
at Class.module.exports.Task.extend.run (/home/user/my-ember-cordova/node_modules/ember-cordova/lib/tasks/bash.js:17:12)
at Class.module.exports.Task.extend.run (/home/user/my-ember-cordova/node_modules/ember-cordova/lib/tasks/cordova.js:21:8)
at Class.module.exports.run (/home/user/my-ember-cordova/node_modules/ember-cordova/lib/commands/cordova.js:54:27)
at Class.module.exports.validateAndRun (/home/user/my-ember-cordova/node_modules/ember-cordova/lib/commands/cordova.js:44:17)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Can't serve platform browser - strange error-message · Issue #206 ...
ERROR : Expected a cordova platform to be installed that was not: browser: Not found in config.xml. You probably need to run ember...
Read more >ember-cordova - Invalid or unexpected token on __dirname
And I'm trying to build first version of my app using ember cdv:build --platform=android --environment=production . Unfortunatelly, build fails ...
Read more >CLI & Configuration - ember-cordova
When running a proxy command, file paths are relative to your cordova directory. For example, running ember cdv plugin add ../local-plugin-path (hint: just...
Read more >Package failed on "cordova platform add android" - Ionic Forum
cordova platform add android. Using cordova-fetch for cordova-android@6.2.3. Error: Failed to fetch platform cordova-android@6.2.3
Read more >5 min to a mobile app with Ember & Cordova
First, let's setup the project and proceed to install some basics. Below you can copy paste the relevant commands. npm install ember-cli -g ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, as @thijsvdanker suggested, I did this:
The only thing that needed to be changed is the id of the <widget> tag with com.myapp.Mobile, so:
Then I ran:
and got success:
Thanks for the help @thijsvdanker !
Also!,
thanks its working now , just need to change locationType to hash! thanks again!