Including library to android project - android

I have downloaded a library from github, and imported it as android project.
In this library that called Library under preferences -> Android I have set it as a library project as seen bellow:
Now I want to add this library to my Android project that called test. So I Right-Click on it and than preferences -> Android, after that I click add... and choose the library, as seen below:
Than I hit ok and apply and ok again. Nothing happens. After that I click again Right-Click on my project and than preferences -> Android and here is what I see:
What should I do to make it work fine?
The github project link is here.

I downloaded the project from the git and checked it,The .project file for eclipse is missing.
My solution would be create a new project and use these resources

Related

Adding a library to eclipse

I am new to Eclipse and I could not solve this problem.
How could I import this library to Eclipse using the default builder (not using Gradle)?
Without using Gradle/Maven and using Eclipse you need to manually add the library.
The library is in the jcenter repository, which means there is a jar file available. This jar file can be found here (I'm pretty sure you need the -sources.jar)
Download this library and save it in a logical place. Go to Eclipse, highlight the project and press Alt+Enter. Go to the Java Build Path page and click Add External JARs under the Libraries tab. Select the JAR file and it should be fine.
Keep in mind that the Eclipse ADT plugin is not the way Google wants you to do it. If you have no reason to use Eclipse other than that it's what you have set up now, you should probably move to Android Studio.
Create a new project and add github version project files to newly created project else download the entire project from github and add this project to your current project.
right click(current project) -> Build path -> Configure build path -> Java build path -> Projects (tab) -> click add
Just add this project there and build your project.

Building a project on Eclipse didn't output any bin/*.jar file

downloaded the following open source.
https://github.com/umano/AndroidSlidingUpPanel
Import /library to Eclipse as a Existing Android Code.
There's no error after building the project.
I would like to add the library to my developing app. So I guess I have to build it successfully with library.jar being output to /bin. Or is there other way to make dependency between them ?
You should set the AndroidSlidingUpPanel project as library project. After doing that, in eclipse, right click on your project in which you want to add the AndroidSlidingUpPanel project and go to properties. Then go to android section. In the bottom, click on add Library and select the project. You don't need to add jar manually, eclipse will do that for you.

Using libraries in an android project

I have found a library that I'd like to use for my android app. On the github page of the project, there is a tutorial on how to add the library to your own app so that you can use it, but I have problems following it: https://github.com/gabrielemariotti/cardslib/blob/master/doc/BUILD.md#reference-this-project-as-a-library-in-eclipse I know how to add .jars or projects as libraries to my own project using eclipse, but I don't get the library into my workspace in the first place.
In Eclipse, File -> import -> Android (NOT General) -> Existing Android Code into Workspace -> Select the library folder -> you should see the library
If the import option is not given, make sure you don't have any project by name "main" in your workspace. If you do, rename that project to something else and repeat.

Android Studio 0.8.2 : How to add local Project Library?

i am a android app developer and converting myself from Eclipse to Android Studio.
Now i get a difficulty to add library project into another project.
What i can do in Eclipse is very clear:
1.Set project B as library Project (right click->properties->android->is Library)
2.Add this library into Project A (right click->Properties->android->add...->choose Project B->OK
But how can i execute such behavior in AS?
I read article
Create a standalone library with Android Studio
and Create Project A as Library in AS.
Now i create Project B in AS with module BApp,
how can i add Library Project A into B/BApp?
The reason i would not like to copy files of Project A to Project B is, I would also use Library Project A in my many other Project. I dont think it is a good idea that make a hard copy to each Project while i will always update Library A in local.
Appreciation for the Help!
You have to go to Project Structure and add the library as a new module. To do this click on the + icon and select Import Existing Project, once the module is imported go to the Dependencies tab, click on the + icon and select Module Dependency and click on your library.

How to include GitHub library to your existing Android project in eclipse

I want to include this library from github to my existing project, I am using eclipse.
Is there any tutorial on how to do this? I am new to android and java development so any step by step help would be great!
note:
I have an Egit plugin installed in eclipse.
Image of the screen when I try to Import the library from the unziped file I have downloaded from the github page:
Also after importing the library as suggested below a library folder created in my Package Explorer but here is what I get:
I have now the library in the eclipse Package explorer, and now I want to add it to my project, so I Right-Click on the existing project and choose properties. Under Android liabrary i click ok and choose the library than ok, nothing happens!
Right click on your project -> properties -> Android -> Add. There you can hose a library.
I got the same problem as yours, please check my answer here , hope it helps.
Extract the zip,
Right click in your workspace -> Import -> Android -> Existing Android Code Into
Workspace -> give path of that project/library
Done.

Categories

Resources