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 previusly created library project to this project.
Select 'java compuer'
Check 'Enable project specific settings'
Set the 'compiler compliance Level' to 1.6
Click OK
You shoshould now be able to build the project. if it had been built previusly, 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.