Eclipse and Idea import library file "graphic steps"

Source: Internet
Author: User

About Eclipse and Idea import library files, we use the Pulltorefresh (pull refresh drop load) component of the library as an example to explain specifically.

Pulltorefresh Download Address: Https://github.com/chrisbanes/Android-PullToRefresh


Our goal is to import the Library folder into Eclipse or idea.


One, idea to import library file steps


1, first we need to have a project, not to create a bar

2, right click the project name click Open Module Settings (F4)


3, you can see such an interface


Next, click the Green plus sign in the middle section to import module


Find the directory of library class libraries to import


After clicking OK, the new interface selects the first option Create module from existing sources, and then the next step is to know that the import operation is complete


4, and then you can see this interface, the middle of a library more than one folder


5, then click on the right side of the Green plus button to select the third module Dependency, pay attention to the middle section to select the directory you want to import library files, that is, at this point in the middle of the interface to select the Demo folder, in the Green button to add


6, you can see that there is a library folder can choose to select OK and then OK to end the setting


7, this is to be able to see your project more than a library folder


Open the Library folder to see the contents of the folder,


8, we add a library in the main activity class to check whether the import is successful, no error can be imported



Second, Eclipse import library file steps


1, Import


2, choose Android/existing Android Code into Workspace


3, select Library folder directory, remember to select Copy projects into workspace


4, you can see the project directory more library


5, right Key library select Properties (at the bottom)

Click Is Library--"OK"


6, then right click the project selection properties to import library files add add to select the Library folder to import


7, and then use the library file to provide classes to detect whether the import is correct (note that the project and library files need to be in the same directory, that is, the same work space)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.