简体   繁体   English

如何安装ActiveAndroid以与Eclipse配合使用?

[英]How do I install ActiveAndroid for use with Eclipse?

I'm learning Android and Java at the same time, so sometimes I get hung up on the Java side of things. 我同时学习Android和Java,因此有时我会迷上Java。

I'm trying to use the ORM library ActiveAndroid, but the archive I downloaded doesn't contain a .jar file, just a libs folder and a src folder. 我正在尝试使用ORM库ActiveAndroid,但是我下载的档案文件不包含.jar文件,仅包含libs文件夹和src文件夹。 How do I import/install/incorporate this into my Eclipse Android project? 如何将其导入/安装/合并到我的Eclipse Android项目中?

You have several options: 您有几种选择:

Following resources may help you 以下资源可能对您有帮助

I built the jar by running ant in the ActiveAndroid root directory. 我通过在ActiveAndroid根目录中运行ant来构建jar。 ActiveAndroid.jar is then located in the dist directory. ActiveAndroid.jar然后位于dist目录中。 (The build.xml file is an ant build script) (build.xml文件是一个蚂蚁构建脚本)

Simpler solution worked for me (have only "plain" Eclipse, Indigo SR2): 更简单的解决方案为我工作(只有“普通” Eclipse,Indigo SR2):

  1. File->New->Project... 文件 - >新建 - >项目...
  2. Java Project from Existing Ant Buildfile 现有Ant构建文件中的Java项目
  3. Select build.xml 选择build.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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