Thiru
Thiru

Reputation: 2394

How to add JSoup.jar to my android project?

Very basic, But I don't know, How to add JSoup.jar to my android workspace? If anyone knows, please help me?

Upvotes: 13

Views: 22967

Answers (6)

Jose Kj
Jose Kj

Reputation: 2962

In Android Studio follow the below steps:

  1. Right click on file named app (inside project files in the Android project view)
  2. Click on Open module settings
  3. Inside Project Structure click on the + (New module) symbol on top left corner
  4. Inside create new module select .JAR/.AAR package
  5. Inside create new module select the .jar file to be imported and click finish
  6. Inside Project Structure click on app (below list of Modules)
  7. Select Dependencies click on the +(Add) symbol on top right corner
  8. Then select Module dependency
  9. Select the module name to be imported from the list given in Choose Modules and click ok.

Upvotes: 2

Haris Durrani
Haris Durrani

Reputation: 21

Create a folder named libs in the root of your project and put your jar files here. And then right Click the .jar file and click Add as Library and Select app from dropdown menu and click OK

This solved my problem

Upvotes: -1

Rahul Zoldyck
Rahul Zoldyck

Reputation: 31

Create a folder named libs in the root of your project and put your jar files here. And then right Click the .jar file and click Add as Library and Select app from dropdown menu and click OK

Happy Coding :)

Upvotes: 3

amit sharma
amit sharma

Reputation: 210

If you want to add jar in specific folder(eg: lib) than do as Francesco said else Just right click on project>build path>configure build path>libraries> you have some options to add jar.Which one to use upto you.

Upvotes: 1

Francesco Vadicamo
Francesco Vadicamo

Reputation: 5542

Create a folder named libs in the root of your project and put your jar files here. Then go to project Properties, under Java Build Path > Libraries click con Add JARs... and select you jar file, under the libs folder.

Upvotes: 11

Force
Force

Reputation: 6382

Right click on your project > Properties > Java Build Path > Libraries > Add [external] Jars

Upvotes: 13

Related Questions