简体   繁体   中英

Android install external library

我想在项目中使用这个库https://github.com/koush/ion ,但是我不知道如何安装,我使用的是Windows 8和Eclipse,如何安装?

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:

  1. Right Click on package explorer
  2. Import
  3. Existing Project into Workspace
  4. And then browse to the location where the project downloaded
  5. Import it

Steps to add it as library to your project:

  1. Right-click on your project -> Properties
  2. In Android->Library section click Add
  3. Select recently added project -> OK
  4. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM