android - NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/ssl/DefaultHostnameVerifier; -


i'm trying use exchange web services java api in office365 android app i'm making, keep getting error.

relevant stack information below:

caused by: java.lang.noclassdeffounderror: failed resolution of: lorg/apache/http/conn/ssl/defaulthostnameverifier;         @ microsoft.exchange.webservices.data.core.ewssslprotocolsocketfactory.<clinit>(ewssslprotocolsocketfactory.java:86)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.createconnectionsocketfactoryregistry(exchangeservicebase.java:212)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.initializehttpclient(exchangeservicebase.java:194)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.<init>(exchangeservicebase.java:170)         @ microsoft.exchange.webservices.data.core.exchangeservice.<init>(exchangeservice.java:3779)         @ com.microsoft.office365.connect.sendmailactivity.onbookmeetingbutton1(sendmailactivity.java:140) 

...

caused by: java.lang.classnotfoundexception: didn't find class "org.apache.http.conn.ssl.defaulthostnameverifier" on path: dexpathlist[[zip file "/data/app/com.microsoft.office365.connect-2/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]]         @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56)         @ java.lang.classloader.loadclass(classloader.java:511)         @ java.lang.classloader.loadclass(classloader.java:469)         @ microsoft.exchange.webservices.data.core.ewssslprotocolsocketfactory.<clinit>(ewssslprotocolsocketfactory.java:86)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.createconnectionsocketfactoryregistry(exchangeservicebase.java:212)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.initializehttpclient(exchangeservicebase.java:194)         @ microsoft.exchange.webservices.data.core.exchangeservicebase.<init>(exchangeservicebase.java:170)         @ microsoft.exchange.webservices.data.core.exchangeservice.<init>(exchangeservice.java:3779)         @ com.microsoft.office365.connect.sendmailactivity.onbookmeetingbutton1(sendmailactivity.java:140) 

...

suppressed: java.lang.classnotfoundexception: org.apache.http.conn.ssl.defaulthostnameverifier         @ 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)         ... 20 more  caused by: java.lang.noclassdeffounderror: class not found using boot class loader; no stack available 

i have httpclient 4.3.jar in /libs/ folder , these dependencies:

dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.0.0'  // base odata library: compile group: 'com.microsoft.services', name: 'odata-engine-core', version: '0.12.1' compile group: 'com.microsoft.services', name: 'odata-engine-android-impl', version: '0.12.1', ext:'aar'  // choose discovery , outlook services compile group: 'com.microsoft.services', name: 'discovery-services', version: '0.12.1' compile group: 'com.microsoft.services', name: 'outlook-services', version: '0.12.1'  // azure active directory library compile group: 'com.microsoft.aad', name: 'adal', version: '1.1.1'  //compile 'org.apache.httpcomponents:httpclient:4.4' //compile 'org.apache.httpcomponents:httpcore:4.3.3' //compile 'commons-logging:commons-logging:1.2' //compile 'joda-time:joda-time:2.7' } 

is able spot issue or how possibly fix it? thanks

i tried adding following dependency. it's working fine me

<dependency>     <groupid>org.apache.httpcomponents</groupid>     <artifactid>httpclient</artifactid>     <version>4.4.1</version> </dependency> 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -