java - Error - Didn't find class "javax.naming.ldap.LdapName" -
i'm using unirest camfind result.
the full error log :
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; @ com.mashape.relocation.conn.ssl.abstractverifier.extractcns(abstractverifier.java:277) @ com.mashape.relocation.conn.ssl.abstractverifier.getcns(abstractverifier.java:265) @ com.mashape.relocation.conn.ssl.abstractverifier.verify(abstractverifier.java:157) @ com.mashape.relocation.conn.ssl.abstractverifier.verify(abstractverifier.java:140)
[...] more "at"s
at bookshotco.bookshot2.mainactivity$1.run(mainactivity.java:100) @ 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]] @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56)
[..]
suppressed: java.lang.classnotfoundexception: javax.naming.ldap.ldapname @ java.lang.class.classforname(native method) @ java.lang.bootclassloader.findclass(classloader.java:781) @ java.lang.bootclassloader.loadclass(classloader.java:841) @ java.lang.classloader.loadclass(classloader.java:504) ... 23 more caused by: java.lang.noclassdeffounderror: class not found using boot class loader; no stack available
few people had problem , fewer solved it, of times using stuff compatibility of different versions did not work me.
the emulator i'm using date (nexus 5 on api 21).
i've had same issue , happening in obfuscated code. keeping whole org.apache package in proguard rules solved issue.
# keep apache package, since cannot find of classes , throws verify error -keep class org.apache.** {*;}
Comments
Post a Comment