Android uses eclipse to build K9

Source: Internet
Author: User
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:

  1. Open eclipse and choose file-> New-> Project
  2. Choose Android Project
  3. Select Create project from existing source and then browse to projectfolder/plugins/actionbarsherlock/library folder.
  4. Finish the wizard, then right click on the newly created Project in the package explorer and select 'properties '.
  5. Under the android options, you see a section 'library' with a checkbox islibrary. Make sure that's checked.
  6. Clean and build this library project.
  7. Select Create project from existing source and then browse to projectfolder/plugins/Android-pulltorefresh/library folder.
  8. Finish the wizard, then right click on the newly created Project in the package explorer and select 'properties '.
  9. Under the android options, you see a section 'library' with a checkbox islibrary. Make sure that's checked.
  10. Clean and build this library project.

  11. Inside your projectfolder, make sure you have a directory named 'gen'

  12. From eclipse, File> Import

  13. Under general, select 'existing projects into workspace 'and click Next

  14. Next to 'select root directory', browse to your K-9 working copy

  15. Click Finish

  16. In the package explorer, right click 'k9mail' and click 'properties'

  17. Select 'android' again and then click 'add '.

  18. Now add the previusly created library project to this project.

  19. Select 'java compuer'

  20. Check 'Enable project specific settings'

  21. Set the 'compiler compliance Level' to 1.6

  22. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.