java lang NoClassDefFoundError failed resolution of Lorg apache http ProtocolVersion

0 votes

The APK is compiled, but when I attempt to run the app on the Android P emulator is giving an error:

java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion

My build.grade file:

android {

     compileSdkVersion 'android-P'
     buildToolsVersion '28-rc1'
   
    useLibrary 'org.apache.http.legacy'

    //for Lambda
    compileOptions {
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_1_8
    }

Can someone explain to me why this error is coming?

May 20, 2022 in Others by Kichu
• 19,040 points
938 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
0 answers

On executing runner class I get cucumber.runtime.CucumberException: java.lang.NoSuchMethodException

On executing runner class I get cucumber.runtime.CucumberException: ...READ MORE

Aug 5, 2019 in Others by Irfan
786 views
0 votes
1 answer

HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory

Try keeping this into your web config ...READ MORE

answered Feb 11, 2022 in Others by Rahul
• 9,680 points
12,940 views
0 votes
1 answer

Is there a way to generate high resolution PNGs of iOS emoji?

Step 1: Visit Google Play Store on ...READ MORE

answered Nov 4, 2022 in Others by gaurav
• 23,260 points
574 views
0 votes
0 answers

Is there a way to generate high resolution PNGs of iOS emoji?

I have been able to find 160x160 ...READ MORE

Sep 23, 2022 in Others by gaurav
• 23,260 points
477 views
0 votes
1 answer

What is the better API to Reading Excel sheets in java - JXL or Apache POI

Here are the things where both APIs ...READ MORE

answered Oct 9, 2022 in Others by narikkadan
• 63,600 points
3,396 views
0 votes
1 answer

Get number of columns of a particular row in given excel using Java

Use: int noOfColumns = sh.getRow(0).getPhysicalNumberOfCells(); Or int noOfColumns = sh.getRow(0).getLastCellNum(); There ...READ MORE

answered Oct 24, 2022 in Others by narikkadan
• 63,600 points
3,400 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP