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 in Others by Kichu
• 19,040 points
40 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
376 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 in Others by Rahul
• 8,980 points
1,903 views
0 votes
1 answer

Different types of Collation Sensitivity

Following are the different types of collation ...READ MORE

answered Oct 10, 2018 in Others by CodingByHeart77
• 3,720 points
1,163 views
0 votes
1 answer

Reducing sequences in an array of strings

I've written a C# app to solves ...READ MORE

answered Nov 2, 2018 in Others by DataKing99
• 8,240 points
248 views
0 votes
1 answer
0 votes
2 answers

What are the applications of artificial neural networks?

Artificial neural network is a computational model ...READ MORE

answered Mar 2, 2019 in Others by SA
• 1,050 points
1,055 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
1,676 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP