本文介绍了java.lang.IncompatibleClassChangeError:类'org.apache.http.message.BasicHeader'未实现接口'org.apache.http.NameValuePair'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Released APK
中遇到问题. java.lang.IncompatibleClassChangeError
安装并打开发行APK时出现错误.但是我的调试APK正常运行.我看到很多链接和stackoverflow问题,但没有任何解决方案.我该怎么办?
I have an issue in Released APK
. java.lang.IncompatibleClassChangeError
Error comes when install and open release APK. But my debug APK is working properly. I saw lot of links and stackoverflow question but I didn't got any solution. What should I do?
java.lang.IncompatibleClassChangeError: Class 'org.apache.http.message.BasicHeader' does not implement interface 'org.apache.http.NameValuePair' in call to 'java.lang.String org.apache.http.NameValuePair.getName()' (declaration of 'com.android.volley.toolbox.BasicNetwork' appears in /data/app/com.mypackage.myprojectname-XI7DFLjbpTwZkGhQ3WYiBQ==/base.apk)
at com.android.volley.toolbox.BasicNetwork.convertHeaders(SourceFile:3)
at com.android.volley.toolbox.BasicNetwork.performRequest(SourceFile:8)
at com.android.volley.NetworkDispatcher.run(SourceFile:8)
任何帮助将不胜感激.谢谢.
Any help will be appreciated.Thanks.
推荐答案
我添加了凌空库&解决了我的问题.
I have added volley library & resolved my issue.
implementation 'com.android.volley:volley:1.1.1'
这篇关于java.lang.IncompatibleClassChangeError:类'org.apache.http.message.BasicHeader'未实现接口'org.apache.http.NameValuePair'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!