title: Error - Didn't find class "javax.naming.ldap.LdapName"
body: <p>I'm using unirest to get a camfind result.</p>
  
  <p>The full error log : </p>
  
  <pre><code>04-14 18:24:39.574    1880-2300/projectco.project E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-120
  Process: projectco.project, PID: 1880
  java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/naming/ldap/LdapName;
          at com.mashape.relocation.conn.ssl.AbstractVerifier.extractCNs(AbstractVerifier.java:277)
          at com.mashape.relocation.conn.ssl.AbstractVerifier.getCNs(AbstractVerifier.java:265)
          at com.mashape.relocation.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:157)
          at com.mashape.relocation.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:140)
  </code></pre>
  
  <p>[...] more "at"s</p>
  
  <pre><code>at bookshotco.bookshot2.MainActivity$1.run(MainActivity.java:100)
          at java.lang.Thread.run(Thread.java:818)
   Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.naming.ldap.LdapName" on path: DexPathList[[zip file "/data/app/projectco.project-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
  </code></pre>
  
  <p>[..]</p>
  
  <pre><code>Suppressed: java.lang.ClassNotFoundException: javax.naming.ldap.LdapName
          at java.lang.Class.classForName(Native Method)
          at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
          at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
          ... 23 more
   Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
  </code></pre>
  
  <p>Few people had this problem and even fewer solved it, most of the times using stuff to do with compatibility of different versions which did not work for me.</p>
  
  <p>The emulator I'm using is up to date (nexus 5 on api 21).</p>