title: Run phonegap application on Android device
body: <p>Sorry if this question is vague.</p>
  
  <p>When I try to get my Phonegapp application onto an Android device to test, it does not work.</p>
  
  <p>It works fine on iOS.</p>
  
  <p>I have searched the web and everything suggested is not working for my problem.</p>
  
  <p>I am running the command: </p>
  
  <p><code>adb devices</code></p>
  
  <p>This returns:</p>
  
  <pre><code>List of devices attached 
  BX90374LPY  device
  </code></pre>
  
  <p>I am then running: </p>
  
  <pre><code>phonegap run android --device=BX90374LPY
  </code></pre>
  
  <p>This results in:</p>
  
  <pre><code>Unknown platforms: BX90374LPY
  </code></pre>
  
  <p>If I run:</p>
  
  <pre><code>phonegap run android --device
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>[phonegap] executing 'cordova run android --device'
  [phonegap] completed 'cordova run android --device'
  </code></pre>
  
  <p>But nothing happens on my device.</p>
  
  <p>What am I doing wrong, or missing?</p>
  
  <p>Thank you in advance.</p>
  
  <p><strong>EDIT / UPDATE</strong></p>
  
  <p>It seemed I was having a problem with my $PATH variable for ANDROID_HOME</p>
  
  <p>Here's what fixed it for me:</p>
  
  <p>Open you bash profile:    </p>
  
  <p><code>open -e .bash_profile</code></p>
  
  <p>Then add this to the file when it opens:</p>
  
  <pre><code>export ANDROID_HOME=/usr/local/Cellar/android-sdk/24.1.2
  export PATH=$ANDROID_HOME/tools:$PATH
  </code></pre>
  
  <p>Save this file, and restart terminal. Job Done.</p>