cordova - Unable to run ionic app on android device -


c:\users\saurabh\demo\platforms\android\cordova\node_modules\q\q.js:126                 throw e;                       ^    error running 1 or more of platforms:  error:    c:\users\saurabh\demo\platforms\android\cordova\run.bat: command failed exit code 1 may not have required environment or os run project. 

however, when emulate same app running without issue. environment info follows-

  • cordova cli: 5.0.0
  • gulp version: cli version 3.9.0
  • gulp local: local version 3.9.0
  • ionic version: 1.0.0
  • ionic cli version: 1.5.0
  • ionic app lib version: 0.1.0
  • os: windows 8.1
  • node version: v0.12.2

ps: have tried remove , add platform.

http://i.stack.imgur.com/yero9.png

i think don't have set environment variable on windows , example

java jdk

create environment variable java_home pointing root folder java jdk installed. so, if installed jdk c:\program files\java\jdk7, set java_home path. after that, add jdk's bin directory path variable well. following previous assumption, should either %java_home%\bin or full path c:\program files\java\jdk7\bin

apache ant

you'd want add path: c:\apache-ant-1.9.2\bin

android sdk

cordova requires android_home environment variable set. should point [android_sdk_dir]\android-sdk directory (for example c:\android\android-sdk). next, update path include tools/ , platform-tools/ folder in folder. so, using android_home, add both %android_home%\tools , %android_home%\platform-tools

for more details go here...


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -