Using org.apache.http.legacy in Android 9

后端 未结 3 1427
面向向阳花
面向向阳花 2020-12-17 03:02

I have an old android app that uses the apache legacy Http library (org.apache.http.legacy). After the changes on Android 6, I was able to keep the app working including the

3条回答
  •  执笔经年
    2020-12-17 03:19

    Your classes seem to be conflicting.

    As an alternative to using the runtime Apache library, apps can bundle their own version of the org.apache.http library in their APK. If you do this, you must repackage the library (with a utility like Jar Jar) to avoid class compatibility issues with the classes provided in the runtime.

    See here

提交回复
热议问题