title: How do I properly include an external jar file for a cordova plugin?
body: <p>I am trying to make a simple cordova android plugin that requires classes defined in a jar file. I have a test project <a href="https://github.com/konsumer/testpebble" rel="noreferrer">here</a>, that includes the example usage &amp; a simplified version of my plugin.</p>
  
  <p>In my plugin.xml, I have this:</p>
  
  <pre><code>&lt;platform name="android"&gt;
          &lt;config-file target="res/xml/config.xml" parent="/*"&gt;
              &lt;feature name="Pebble"&gt;
                  &lt;param name="android-package" value="com.jetboystudio.pebble.PebblePGPlugin"/&gt;
              &lt;/feature&gt;
          &lt;/config-file&gt;
          &lt;source-file src="src/android/PebblePGPlugin.java" target-dir="src/com/jetboystudio/pebble" /&gt;
          &lt;source-file src="src/android/libs/pebble_kit.jar" target-dir="libs" /&gt;
      &lt;/platform&gt;
  </code></pre>
  
  <p>In my test project, I have pebblekit jar in-place where it needs to be (I think): plugins/com.jetboystudio.pebble.PebblePGPlugin/src/android/libs/pebble_kit.jar</p>
  
  <p>When I "cordova build" I get no errors, but when I install the apk-file I get "Class not found" in Chrome device inspect. I am assuming this class it can't find is one of the classes defined in pebble_kit.jar. Also, it doesn't seem to be copying this file into platforms/android.</p>
  
  <p>If I could just debug better (which class is not found?) that might be a good start, if no one has the actual answer of why this doesn't work.</p>