开发者

use older version of jar to override newer system libs

开发者 https://www.devze.com 2023-03-29 15:48 出处:网络
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 p

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

精彩评论

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

关注公众号