Android Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion
Put this in the Manifest <application>
tag:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
More info:
https://issuetracker.google.com/issues/79478779
FATAL EXCEPTION java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/Args
I was also working on apache stuff, and I run into that error.
I was able to fix it by downloading the .jar and then link it in the project settings manually.
You should move the jar under your app/build/libs
Files >> Project Structure >> Dependencies >> + >> File Dependencies >> and then change it to provided instead of compile (compile will cause a java exit with nonzero value 1 if you are importing too much jars)
NoClassDefFoundError: Failed resolution of: Lorg/apache/http/conn/ssl/DefaultHostnameVerifier;
I tried by adding following dependency. Now it's working fine for me
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4.1</version>
</dependency>
Related Topics
View the Task's Activity Stack
What Is the Relationship Between Looper, Handler and Messagequeue in Android
Apache Http Connection with Android 6.0 (Marshmallow)
Why the View Keeps Flashing When Using Jetpack Navigation with Compose
Android Devices with Different Height Takes Same Layout Folder
Value of a Global Variable Is Reset After It Is Initialised in Valueeventlistener
What's the Maximum Size for an Android Shared Preference Value
Get Nfc Tag with Ndef Android Application Record (Aar)
Jpeg Images Have Different Pixel Values Across Multiple Devices
Navigation Drawer with Backword Compatibility Android
How to Keep a Countdowntimer Running Even If the App Is Closed
Save Data and Change Orientation
Mediaplayer.Setdatasource Causes Ioexception for Valid File
I Want My Recyclerview to Not Recycle Some Items