Questions tagged [android-apache-legacy]

6 questions
7
votes
1 answer

What's the difference between principles of useLibrary and compile files('') in build.gradle?

After Android 6.0 releases, Support for the Apache HTTP client is removed. If our app is using this client and targets Android 2.3 (API level 9) or higher, HttpURLConnection class is recommended. It's said that this API is more efficient because it…
4
votes
1 answer

java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory"

it's a release apk, and not always to carsh. happens when i use the firebase to start app in Android P. it's high rate when first to install the app. here is the log: 2019-06-13 13:28:08.565 23255-23255/? E/LoadedApk: Unable to instantiate…
103style
  • 61
  • 1
  • 5
2
votes
2 answers

Proguard and apache legacy

I'm using Android API 23 and org.apache.http.legacy so I can use Volley. Everything works except when I use proguard. I'm getting this error: Error:Execution failed for task ':app:packageDevRelease'. Unable to compute hash of …
GuilhE
  • 11,591
  • 16
  • 75
  • 116
1
vote
1 answer

Migrating from Apache Http client legacy to OkHttp

I'm migrating some code from the Apache HTTP client to OkHttp as the Apache client was deprecated in API 23 and now, in API 29 totally eliminated. In general I'm not having too many problems but there's a line for which I can't find an…
Jaime Alcántara Arnela
  • 2,062
  • 5
  • 25
  • 56
0
votes
0 answers

how to solve Program type already present: org.apache.http.auth.AuthSchemeProvider?

The below gradle files are i have used in my application. It works fine with api level 23 but when i update from 23 to 26 i faced this issue. Please help me to resolve this. // Top-level build file buildscript { repositories { …
0
votes
1 answer

Error:(12, 23) java: package org.apache.http does not exist

my android project doesn't contain build.gradle to put useLibrary 'org.apache.http.legacy'