添加包的最佳方法我有使用 Eclipse 的 Android 项目的源代码
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用库可以做到这一点吗?
---> 项目属性 ---> Java 构建路径 ---> 库。
可能值得研究一下。
Would this be doable using libraries??
--->Project Properties--->Java Build Path--->Libraries.
Might be worth looking into.