Setting up Eclipse for the Android Build Environment


go to http://www.eclipse.org/downloads/, and download the latest version of Eclipse Classic
Eclipse version 3.6.0 is used in this example

cd ~
tar -zxvf ~/Downloads/eclipse-SDK-3.6-linux-gtk.tar.gz


right click on your desktop in an open area
click create launcher
name it whatever you want in the name area
in command click the browse button go to your eclipse directory choose the eclipse file and click open.
then click ok

you now have a desktop icon to click on
now start up eclipse
click ok for default workspace
once eclipse has started click help>install new software
click add in the top right corner
name: android-sdk
location: https://dl-ssl.google.com/android/eclipse/
click ok

click the drop down box next to add. choose android-sdk.

click the box next to developer tools. then click next

after installing the SDK eclipse will restart
set your android path click: window>preferences>android
it will prompt you for setting up the path to your SDK and ask you if you want to provide google with information.
browse for your SDK directory

click window>android sdk avd manager>available packages
select them all
click install selected

click the bullet accept all then click install

back in the terminal once the 'make' from downloading the source is complete.

cd ~/android/system
cp development/ide/eclipse/.classpath .
chmod u+w .classpath


modify elcipse settings to run better with android

cd ~/eclipse
gedit eclipse.ini

we're changing the memory values used by eclipse so it will function better.
in the text editor that opens
find theses values

-Xms40m
-Xmx256m
-XX:MaxPermSize=256m


and change them to

-Xms128m
-Xmx512m
-XX:MaxPermSize=256m



once done save and close the file
open eclipse
click file>new>project
click java project
un-click use default location
click browse
navigate to the ~/android/system folder, and click ok
click finish



congratulations you just imported the entire android source into eclipse.


Next up is the [Basic] Vendor Setup FIXME

 
android_project/build/dev_env/eclipse.txt · Last modified: 2010/06/30 12:34 by sniffle
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki