安卓的NoSuchMethodError用APK文件(Apache的HTTPUtils芯) [英] Android NoSuchMethodError with APK file (Apache HTTPUtils core)

查看:99
本文介绍了安卓的NoSuchMethodError用APK文件(Apache的HTTPUtils芯)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Apache HTTPUtils核心库4.1.4在我的项目使用

I use the Apache HTTPUtils core library 4.1.4 in my project to use the

EntityUtils.consume(HTTPEntity);

方法。

然而,当此方法被用在仿真器(SDK V.2.1)的应用程序,它崩溃用的NoSuchMethodError

However, when this method is used in the app in the emulator (SDK v.2.1), it crashes with a NoSuchMethodError.

我想这是因为应用程序试图使用Android库,它是旧的,没有这种方法,而不是较新的一个我已经把我的构建路径。

I guess this is because the app tries to use the Android library which is old and doesn't have this method instead of the newer one I've put in my build path.

如何使用武力的应用程序来使用新的库?

How can I use force the app to use the newer library?

推荐答案

值得检查出的在Android上使用较新的HttpClient的版本(如4.1.x版)

这篇关于安卓的NoSuchMethodError用APK文件(Apache的HTTPUtils芯)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆