开发者

use older version of jar to override newer system libs

My android app needs to use some methods in commons-httpclient-3.1 that are not available in newer versions of commons-httpclient. I can bundle the jar of commons-httpclient-3.1 with my app, but the problem is, Android comes with its own version of commons-httpclient and that seems to override whatever i included. For one, Eclipse wouldnt even let me build the project.

Any simple workarounds, besides downloading the source for co开发者_JAVA百科mmons-httpclient-3.1 and refactoring it into a different package??

Thx


Go to Java Build Bath -> Order and Export tab -> put your library higher than android lib. This should help

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜