Hayk Nahapetyan
Hayk Nahapetyan

Reputation: 4550

Add *.jar file in folder named Android Dependencies

enter image description hereI want to use library from openCV named "opencv library -2.4.3" , I install all what it needs , and now openCV tutorials work. So I need add the same openCV library to my project for use. QUESTION How to add opencv "library -2.4.3" from another project to mine's folder named Android Dependencies

Thanks in advance

Upvotes: 0

Views: 13349

Answers (4)

live-love
live-love

Reputation: 52366

  1. Right click on project
  2. Select Properties
  3. Click on Android on left menu
  4. Click on Add
  5. Please select a Library Project

The jar will go into Android Dependencies.

If you add the jar directly to your project under libs or using build path, then it goes under Android Private Libraries.

Both methods works but referencing a library project can have benefits if you want to alter the code of the library during development.

Upvotes: 0

Pete OK
Pete OK

Reputation: 119

I just did this with a project, using eclipse 4.2.1. As with the other answerer, all I had to do was create a folder called "libs/" in my project, and it auto-updated the Android Dependencies list. Are you copying and pasting inside of eclipse?

I moved the file to that folder using the file system, outside of eclipse.

This link describes how the libs folder gets added to Android Dependencies:

http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

Upvotes: 0

Leandros
Leandros

Reputation: 16825

You have to click on on the project properties (Right Click -> Properties) and add it as dependency there.

Upvotes: 0

Givi
Givi

Reputation: 3283

Create a libs folder (/libs) in your project's root folder. Copy the wanted jar to it.

It will be added to Android dependencies.

Upvotes: 1

Related Questions