Adding a library/JAR to an Eclipse Android project

后端 未结 8 2070
长发绾君心
长发绾君心 2020-11-22 02:59

This is a two-part question about adding a third-party library (JAR) to an Android project in Eclipse.

The first part of the question is, when I try to add a third-p

8条回答
  •  深忆病人
    2020-11-22 03:15

    Setting up a Library Project

    A library project is a standard Android project, so you can create a new one in the same way as you would a new application project.

    When you are creating the library project, you can select any application name, package, and set other fields as needed, as shown in figure 1.

    Next, set the project's properties to indicate that it is a library project:

    In the Package Explorer, right-click the library project and select Properties. In the Properties window, select the "Android" properties group at left and locate the Library properties at right. Select the "is Library" checkbox and click Apply. Click OK to close the Properties window. The new project is now marked as a library project. You can begin moving source code and resources into it, as described in the sections below.

提交回复
热议问题