If Jsoup works with android?

2019-09-18 13:15发布

I need to parse data from web in my Android Application.Among many solutions i find Jsoup is simpler and straight forward.But i can't use it in my application.If anybody shares the idea it will be great thanks

标签: android jsoup
3条回答
欢心
2楼-- · 2019-09-18 13:58

Right Click on project > BuildPath> Add External Archives > select the .jar file :)

查看更多
家丑人穷心不美
3楼-- · 2019-09-18 14:02

Just put it in the libs directory, make a right click on gson-1.6.jar, select Build Path > Add to Build Path and it should just works :)

查看更多
一纸荒年 Trace。
4楼-- · 2019-09-18 14:02

Adding jsoup to my libs dir did not work for me. Instead I extracted the jsoup source and then added it to my src directory of my android project. Then on next compile it compiled and converted all code to DEX. Upon inspection of the APK the jsoup libary was indeed there. Finally, I tested and it worked great!

查看更多
登录 后发表回答