import android framework source into eclipse

1,637 views
Skip to first unread message

vishal bhoj

unread,
Oct 14, 2009, 12:54:09 AM10/14/09
to android-...@googlegroups.com, android...@googlegroups.com

Hello,

Is there a way to browse the whole android framework as an android project .

--
with regards vishal

Miguel Paraz

unread,
Oct 14, 2009, 4:42:14 AM10/14/09
to android-platform
On Oct 14, 12:54 pm, vishal bhoj <vishalb...@gmail.com> wrote:
> Hello,
>
> Is there a way to browse the whole android framework as an android project .

No, Eclipse Android projects are for SDK apps. The framework (are you
referring to the Java library for android.*) is not an app.

Christopher Tate

unread,
Oct 14, 2009, 9:08:37 AM10/14/09
to android-...@googlegroups.com
The platform as a whole is not "an app," but it is certainly possible
to set up an Eclipse project that covers basically all of the Java
portions of the source base. This is done routinely by Google
engineers working on Android.

Create a new Eclipse project "from existing sources," and point it at
the root of the platform source tree that you have checked out with
repo. Once it's in place, the repository contains the file
development/ide/eclipse/.classpath. Copy that to the root of
Eclipse's project directory, replacing whatever .classpath file was
automatically generated, and 'Refresh' the project within Eclipse.
You should be good to go at this point.

(Or steps roughly to that effect; it's been a while since I had to do
this from scratch. Good luck!)

--
chris tate
Android framework engineer

Chad Fawcett

unread,
Oct 14, 2009, 12:25:46 PM10/14/09
to android-...@googlegroups.com
http://source.android.com/using-eclipse

For master currently, you may also want to grab the .classpath from https://review.source.android.com/12133 instead of the version in ide/eclipse as it adds/removes a few sources to reduce the initial error count. 

 -Chad
Reply all
Reply to author
Forward
0 new messages