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

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.

Related

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 install external library

I want to use this library https://github.com/koush/ion in my project.But I don't understand how can I install it.I am using Windows 8 and Eclipse.How can I install ?
Download that project and put it in workspace of eclipse and import it from work space to eclipse and make it as library project and add it to your project.
Steps to import:
Right Click on package explorer
Import
Existing Project into Workspace
And then browse to the location where the project downloaded
Import it
Steps to add it as library to your project:
Right-click on your project -> Properties
In Android->Library section click Add
Select recently added project -> OK
That's it!
Now you can use it
You must perform the following steps:
Download ion project code.
Import it in your workspace using eclipse.
Right click in your current project and select Properties. The project properties windows must be opened.
Select Android option.
Go to the bottom of this tab and you can view the Library section.
Add the library dependency using the Add button.
I hope that helps!
You are probably better off downloading the jars vs the source.
https://github.com/koush/ion#get-ion
Download those two and place them in the "libs" directory of your project. If that directory does not exist, create it. From with your Eclipse project preferences, you can add those jars as dependencies.

How to import existing android project into the eclipse

I Checked out two projects from SVN(Server) both are related to each other, and i imported both to existing eclipse workspace but while launching the project, it is crashing at the home screen itself plz anyone let me know how to overcome this issue....
Check whether it is a library project? If so then right click on project-> go to properties-> Android-> check weather the library project is added into your main project or not?
File->Import->General->Existing Projects into Workspace,
Next
Select root directory: /path/to/project
Projects->Select All
If one of those projects is dependent on another, or is it's library, you will need to connect them somehow.
You will do that by right clicking on your project and then go to propreties.
There, it it's a library, go to Android and Add that project as a library.
Or you could go to Java Build Path and add a project there and manage your order and export

The import com.google.android.vending cannot be resolved in an imported android project

I have just imported an android project and when I am trying to run it it is giving me error on the following imports
import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.ServerManagedPolicy;
Any help resolving this would be greatly appreciated.
You’re getting those errors because you didn’t import the licensing library.
Go into the folder where u downloaded the android-sdks stuff.
So there are 2 things: I) a Licensing Library and II) the Sample Licensing App
I) The licensing library is located in:
UserName/android-sdks/extras/google/play_licensing/library
II) The Sample Licensing App is located in:
UserName/android-sdks/extras/google/play_licensing/sample
OR
In Eclipse, File-> New -> Other… -> Android Sample Project -> (Choose a Target and hit next) -> Google Play Licensing Library
Step 1:
In Eclipse, Go to File-> New -> Other… -> Android Project from Existing Code -> (Locate the library, ie= UserName/android-sdks/extras/google/play_licensing/library)
Step 2:
Once you have the library imported to Eclipse, right click on the package and go to Properties -> Android. Make sure the “Is Library” option is checked.
Step 3:
In Eclipse, File-> New -> Other… -> Android Sample Project -> (Choose a Target and hit next) -> Google Play Licensing Library. My package was named “play_licensing_sample” by default.
Step 4:
Right click on “play_licensing_sample” and go to Properties-> Android -> Add… -> (Choose the Licensing Library u made in Step 2)-> Apply
You’re done!
I ran into this issue when trying to set up my Android project for an APK expansion file.
The following steps resolved it for me:
Add downloader_library to eclipse as a "project from existing source" (it has errors)
Add licensing library to eclipse as a "project from existing source"
Add licensing library to downloader_library project
In android studio 2.2.3 I was able to fix the "package com.google.android.vending.licensing does not exist"
error by:
Right click the downloader_library module from your project view
Select "Open Module Settings"
Select "Dependencies" Tab
Press plus sign + then select "3 Module Dependency"
Select "market_licensing" and press OK.
Original writeup of fix at https://kitefaster.com/2017/02/15/expansion-apk-files-android-studio/
It took me 2 days to resolve this in my project
1)I discovered the folder here
2)created a folder here
3)copied the files (less the UTIL folder) here
enter image description here
In Android studio you need to add a folder same level as java(folder) called aidl. Take a look at the image for more specific.
You can get those file here - https://android.googlesource.com/platform/development.git/+/b8168f27f6f5b6b0ced5ef3210c0e89e8d3a5ae2/samples/MarketLicensing/src/com/android/vending/licensing
You may want to review the steps this link. It goes through the steps of adding it to your Android project, regardless of your IDE. Eclipse will work just fine.
These steps take some time and effort, but I have successfully done this before.

How to use Android-Wheel into my project

I have zip file of Android-wheel but dont know how to use it into my project.What possible things can i do, Please suggest me.
You need to unzip the zip file to some directory, and in your android project under build-path choose add external jar, and choose the jar in the unzipped directory.
Update:
I checked Android-Wheel out and you will have to import the project from the google-code svn Android Wheel. In eclipse if you go to create a new project there should be a import from svn option. Once you do and the project is imported you can set it up as a library project and then use it in your app. To do that right click on your project, choose the android tab, and choose add under the libraries section.
I just made this tutorial, hope this helps those who use android wheel for the first time.
http://tolkianaa.blogspot.mx/2012/03/do-not-try-to-reinvent-wheel.html
*Download project with Svn
*Import the project into Eclipse
* Once you import the project in the Eclipse, Right click on the project -> Properties -> Choose android tab and check the IsLibrary option
* Now Right click on your project -> Properties -> Choose android tab -> In the Library section add the imported project.

Categories

Resources