添加包的最佳方法我有使用 Eclipse 的 Android 项目的源代码

发布于 2024-10-03 23:55:16 字数 1224 浏览 0 评论 0原文

我正在使用 Eclipse 和 APT 开发 Android 应用程序。

现在我需要使用 com.plancake.api.client 包,该包使用 org.json.simple 包。

我已将它们下载到我的开发人员计算机上(它们现在位于我的桌面上):

|-- com
|   `-- plancake
|       `-- api
|           `-- client
|               |-- PlancakeApiClient.java
|               |-- PlancakeApiException.java
|               |-- PlancakeListForApi.java
|               |-- PlancakeRepetitionForApi.java
|               |-- PlancakeSettingsForApi.java
|               |-- PlancakeTagForApi.java
|               |-- PlancakeTaskForApi.java
|               |-- PlancakeTasksFilterOptions.java
|               `-- Utils.java
`-- org
    `-- json
        `-- simple
            |-- ItemList.java
            |-- JSONArray.java
            |-- JSONAware.java
            |-- JSONObject.java
            |-- JSONStreamAware.java
            |-- JSONValue.java
            `-- parser
                |-- ContainerFactory.java
                |-- ContentHandler.java
                |-- JSONParser.java
                |-- ParseException.java
                |-- Yylex.java
                `-- Yytoken.java

将它们添加到 Eclipse 中的 Android 项目的最佳方法是什么?

我更喜欢的是一个命令行简单的解决方案,只是为了了解幕后发生的事情。

谢谢,

I am developing an Android application using Eclipse and APT.

Now I need to use the package com.plancake.api.client that uses the org.json.simple package.

I have downloaded them on my developer machine (they are on my Desktop for now):

|-- com
|   `-- plancake
|       `-- api
|           `-- client
|               |-- PlancakeApiClient.java
|               |-- PlancakeApiException.java
|               |-- PlancakeListForApi.java
|               |-- PlancakeRepetitionForApi.java
|               |-- PlancakeSettingsForApi.java
|               |-- PlancakeTagForApi.java
|               |-- PlancakeTaskForApi.java
|               |-- PlancakeTasksFilterOptions.java
|               `-- Utils.java
`-- org
    `-- json
        `-- simple
            |-- ItemList.java
            |-- JSONArray.java
            |-- JSONAware.java
            |-- JSONObject.java
            |-- JSONStreamAware.java
            |-- JSONValue.java
            `-- parser
                |-- ContainerFactory.java
                |-- ContentHandler.java
                |-- JSONParser.java
                |-- ParseException.java
                |-- Yylex.java
                `-- Yytoken.java

What's the best way to add them to my Android project in Eclipse?

What I would prefer is a command-line simple solution just to understand what happens under the hood.

Thanks,
Dan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妄司 2024-10-10 23:55:16

使用库可以做到这一点吗?

---> 项目属性 ---> Java 构建路径 ---> 库。

可能值得研究一下。

Would this be doable using libraries??

--->Project Properties--->Java Build Path--->Libraries.

Might be worth looking into.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文