Android 使用Eclipse 构建K9
来源:互联网 发布:java 异常堆栈信息 编辑:程序博客网 时间:2024/04/30 18:45
Building with Eclipse
You'll need Eclipse with the Android Development Tools plugin installed. Follow the full directions found here:http://developer.android.com/sdk/eclipse-adt.html#installing. Make sure your Android SDK and ADT plugin are both up to date.
Building K-9 can take up to 1 GB of memory. You have to allow Eclipse to use this amount of memory or you will get out-of-memory errors when the Android compilers are run. In order to do this, edit your eclipse.ini file and make sure the following arguments are present: -vmargs -Xms128m -Xmx1024m
You can also pass these parameters to Eclipse on the command line.
To set up Eclipse to build K-9 Mail we need two projects. The first one is the ActionBarSherlock project and the second one is K-9 Mail. We'll set them up in that order too:
- Open Eclipse and choose File->New->Project
- Choose Android Project
- Select Create project from existing source and then browse to PROJECTFOLDER/plugins/ActionBarSherlock/library folder.
- Finish the wizard, then right click on the newly created project in the Package Explorer and select 'properties'.
- Under the Android options, you see a section 'Library' with a checkbox IsLibrary. Make sure that's checked.
- Clean and build this library project.
- Select Create project from existing source and then browse to PROJECTFOLDER/plugins/Android-PullToRefresh/library folder.
- Finish the wizard, then right click on the newly created project in the Package Explorer and select 'properties'.
- Under the Android options, you see a section 'Library' with a checkbox IsLibrary. Make sure that's checked.
Clean and build this library project.
Inside your PROJECTFOLDER, make sure you have a directory named 'gen'
From Eclipse, File > Import
Under General, select 'Existing Projects into Workspace' and click Next
Next to 'Select root directory', Browse to your K-9 working copy
Click Finish
In the Package Explorer, right click 'k9mail' and click 'Properties'
Select 'Android' again and then click 'Add'.
Now add the previously created library project to this project.
Select 'Java Compiler'
Check 'Enable project specific settings'
Set the 'Compiler compliance level' to 1.6
Click OK
You should now be able to build the project. If it had been built previously, make sure you clean it first. If you get errors about missing translation information for some locales, go to Project -> Properties -> Android Lint Settings and change the severity of MissingTranslations to Warning.
- Android 使用Eclipse 构建K9
- 使用 Eclipse PhoneGap 构建 Android
- 使用 Eclipse PhoneGap 构建 Android 应用程序入门
- 使用 Eclipse PhoneGap 构建 Android 应用程序入门
- iOS_使用 Eclipse PhoneGap 构建 Android 应用程序入门
- eclipse android使用Maven deploy构建到Nexus上
- Eclipse和Android分别使用什么构建系统!
- eclipse maven 构建android项目
- 使用eclipse构建war包
- 使用Eclipse JDT 构建AST
- 使用Eclipse构建GeoTools项目
- 使用Eclipse 构建Maven项目
- 使用Eclipse构建Maven项目
- 使用Eclipse构建Maven项目
- 使用Eclipse构建Maven项目
- 使用Eclipse构建Maven项目
- 使用Eclipse构建Maven项目
- 使用Eclipse构建Maven项目
- Linux脚本编写基础
- android之service
- 回归自然
- Android 4.0 用户输入子系统
- 升级Oracle BIEE 11.1.1.6.0到 11.1.1.6.2 BP1相关文章
- Android 使用Eclipse 构建K9
- [MySQL] 设置时区
- 看懂信息检索和网络数据挖掘领域论文的必备知识总结
- javaWeb学习之——XML
- 主题模型(topic model)的提出及发展历史
- Topic Model的分类和设计原则
- 招聘人才还是招聘人员
- 明年的七夕,你还记得我吗
- 一些记录 when dealing with MP4 container