Import android java source code to eclipse.

660 views
Skip to first unread message

mike s

unread,
Dec 19, 2011, 10:34:32 PM12/19/11
to android-...@googlegroups.com
Hi,

I was able to download android 4.0 source and build it locally. But when I tried to create an eclipse project from it by following the steps here:

Is there a new .classpath what I can use within eclipse? I get a lot of error about ***Filter class not found. But when I search the android source code to find those classes and include in the eclipse build path, it said package is wrong or something.

Any one know how to work around that issue?

Thank you.

Aeolian Liu

unread,
Jan 10, 2012, 2:27:41 AM1/10/12
to android-...@googlegroups.com

I got the same error.
These *filter classes' file path differs from their package declaration.
I guess there must be some generated jar lib of this "filterpacks" package, but I can't find it out. Too many jar file in "out" folder...

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

Aeolian Liu

unread,
Jan 10, 2012, 3:19:43 AM1/10/12
to android-...@googlegroups.com

Finally, I found the correct jar file...
Add this jar file to project's lib:
.../filterw_intermediates/classes.jar
You will find all errors related disappear.

All jar files in that folder work, EXCEPT javalib.jar.
You can choose one.


在 2011-12-20 下午11:51,"mike s" <michael.j....@gmail.com>写道:
>

Ying Wang

unread,
Jan 10, 2012, 2:04:37 PM1/10/12
to android-...@googlegroups.com
I don't use eclipse to build the Android platform.
But the platform build system does support some limited support for eclipse.
Run:
$make ECLIPSE-lunch
It will generate .classpath that include both checked-in source and generated source.

Aeolian Liu

unread,
Jan 11, 2012, 9:27:55 AM1/11/12
to android-...@googlegroups.com
Thanks for your info, but I have a question.
After building the source with "make  ECLIPSE-lunch", can I still launch it with emulator or flash it into device?

What's more.
You say you don't use eclipse. Is there any other good tools to view and modify android source code?

Thanks!

2012/1/11 Ying Wang <wang...@android.com>

Ying Wang

unread,
Jan 11, 2012, 5:26:31 PM1/11/12
to android-...@googlegroups.com
On Wed, Jan 11, 2012 at 6:27 AM, Aeolian Liu <aeoli...@gmail.com> wrote:
Thanks for your info, but I have a question.
After building the source with "make  ECLIPSE-lunch", can I still launch it with emulator or flash it into device?
It does not influence the usual build result. 

What's more.
You say you don't use eclipse. Is there any other good tools to view and modify android source code?
Vim + grep works fine for me. 
Some time ago I used to browse the Android source code in Eclipse but never build it from Eclipse.
Reply all
Reply to author
Forward
0 new messages