diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

Error in build project in android after opening project in eclipse #229

Open dinesh36 opened 9 years ago

dinesh36 commented 9 years ago

I have ionic project and can build and run it with the commands grunt run:android

But for setting up the instabug in my project i open the project with the eclipse. But after doing that i am now not able to run the command grunt run:android

Therefore i reomve the android platform via cordova platform rm android

And after that i tried to add the platform again with grunt platform:add:android

I also tried this with following commands ionic platform add android cordova platform add android

But got the same error as following

Running command: /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/hooks/after_prepare/icons_and_splashscreens.js /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited

path.js:313 throw new TypeError('Arguments to path.resolve must be strings'); ^ TypeError: Arguments to path.resolve must be strings at Object.exports.resolve (path.js:313:15) at /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/hooks/after_prepare/icons_and_splashscreens.js:54:19 at arrayEach (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/lodash/index.js:1289:13) at Function.forEach (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/lodash/index.js:5710:11) at Object. (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/hooks/after_prepare/icons_and_splashscreens.js:53:3) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) Error: Hook failed with error code 8: /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/hooks/after_prepare/icons_and_splashscreens.js at /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:194:23 at _rejected (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:797:24) at /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:823:30 at Promise.when (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:1035:31) at Promise.promise.promiseDispatch (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:741:41) at /dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:557:44 at flush (/dinesh/WorkSpace/OfficeWork/Medfolio/MedGenie_Angular_git_commited/node_modules/cordova/node_modules/q/q.js:108:17) at process._tickCallback (node.js:448:13)