How do I build Android project

9 views
Skip to first unread message

braid_pitt

unread,
Oct 28, 2009, 1:42:31 AM10/28/09
to android-platform
I am trying to build android source code (specifically the
applications such as the alarm clock, calendar) and when I do this
using eclipse, there are 1000+ errrors being thrown possibly due to
mismatch of class path and other environmental settings.
Can somebody please help in terms of any said steps to follow for
building the application projects under android using eclipse?
This is important since I need to debug certain issues and due to
failure of compiling I am unable to debug via Eclipse as debug
requires an open project compiled successfully to be present.

FYI- I have installed the DDMS plugin and ADT successfully and am able
to communicate with the target successfully using eclipse, but
unfortunately not able to debug due to the above said reasons.

Any help is appreciated.

braid pitt.

Jean-Baptiste Queru

unread,
Oct 28, 2009, 6:37:58 AM10/28/09
to android-...@googlegroups.com
http://source.android.com/using-eclipse

You can't quite build under eclipse. You can set up eclipse to write
the code and debug it, but building it must use the Android build
system.

JBQ
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Vijay Ganti

unread,
Oct 28, 2009, 7:02:03 AM10/28/09
to android-...@googlegroups.com
Thanks JBQ. I already have android source code built using the Android build system.However, I am unable to debug any application ( already built as part of the android source code) since Eclipse is asking for an open project before debug and complains that the project is not built. Can you provide me some pointers on this?
 
BP

Jean-Baptiste Queru

unread,
Oct 28, 2009, 7:12:31 AM10/28/09
to android-...@googlegroups.com
Sorry, I have no experience with this. I'm sure someone else on the
list must have done that at some point.

JBQ

Mogimo

unread,
Oct 28, 2009, 7:20:56 AM10/28/09
to android-platform
I think you have to modify .classpath.

On 10月28日, 午後8:02, Vijay Ganti <ganti.vi...@gmail.com> wrote:
> Thanks JBQ. I already have android source code built using the Android build
> system.However, I am unable to debug any application ( already built as part
> of the android source code) since Eclipse is asking for an open project
> before debug and complains that the project is not built. Can you provide me
> some pointers on this?
>
> BP
>
> On Wed, Oct 28, 2009 at 4:07 PM, Jean-Baptiste Queru <j...@android.com>wrote:
>
>
>
>
>
> >http://source.android.com/using-eclipse
>
> > You can't quite build under eclipse. You can set up eclipse to write
> > the code and debug it, but building it must use the Android build
> > system.
>
> > JBQ
>
> > On Tue, Oct 27, 2009 at 10:42 PM, braid_pitt <ganti.vi...@gmail.com>
> > wrote:
>
> > > I am trying to build android source code (specifically the
> > > applications such as the alarm clock, calendar) and when I do this
> > > using eclipse, there are 1000+ errrors being thrown possibly due to
> > > mismatch of class path and other environmental settings.
> > > Can somebody please help in terms of any said steps to follow for
> > > building the application projects under android using eclipse?
> > > This is important since I need to debug certain issues and due to
> > > failure of compiling I am unable to debug via Eclipse as debug
> > > requires an open project compiled successfully to be present.
>
> > > FYI- I have installed the DDMS plugin and ADT successfully and am able
> > > to communicate with the target successfully using eclipse, but
> > > unfortunately not able to debug due to the above said reasons.
>
> > > Any help is appreciated.
>
> > > braid pitt.
>
> > --
> > Jean-Baptiste M. "JBQ" Queru
> > Software Engineer, Android Open-Source Project, Google.
>
> > Questions sent directly to me that have no reason for being private
> > will likely get ignored or forwarded to a public forum with no further
> > warning.
>
> --
> Regards,
> Vijay Ganti

Vijay Ganti

unread,
Oct 28, 2009, 7:57:33 AM10/28/09
to android-...@googlegroups.com
can you please guide in terms of what needs to be modified in the class path
Any help is appreciated
BP

Mogimo

unread,
Oct 28, 2009, 7:53:21 PM10/28/09
to android-platform
I just removed vpn and keystore entries from .classpath. Then errors
ware gone.
> --
> Regards,
> Vijay Ganti

Mogimo

unread,
Oct 28, 2009, 9:39:28 PM10/28/09
to android-platform
Sorry, I just *added* vpn and keystore stuff.

Chad Fawcett

unread,
Nov 4, 2009, 10:15:04 AM11/4/09
to android-...@googlegroups.com
Here is the .classpath that I used to get rid of dependency errors (as stated, just adding the vpn and keystore stuff, plus removing IM provider): https://review.source.android.com/12133

If you wanted to pull it in, from platform root:
cd development
git pull git://android.git.kernel.org/platform/development refs/changes/33/12133/2
cd ..

and then copy the new .classpath from development/ide/eclipse into your platform root per the using-eclipse instructions.

 -Chad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to android-platfo...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en
-~----------~----~----~----~------~----~------~--~---




--

Chad Fawcett
http://twitter.com/chadfawcett

A.Grunewald

unread,
Nov 5, 2009, 3:45:23 AM11/5/09
to android-platform
Have you been able to get it working ?
Maybe some of my blog posts are helpful
http://www.airshipworld.info/android/

Cheers

Andreas

nguyenvuthiennga

unread,
Nov 10, 2009, 8:35:46 AM11/10/09
to android-platform
Hi,

I tried "git pull git://android.git.kernel.org/platform/developmentrefs/changes/33/12133/2"
and that gives an error. From the link https://review.source.android.com/#change,12133
there is a space between 'development' and 'refs' but that doesn't
work as well.

I tried to add keystore stuffs and remove ImProvider. That reduces
some errors (still remain 24 errors about not resolved class R).
However, when I open a file, e.g Calculator.java, some more errors
appear about "can not resolved to a type".

I don't really know how to fix that. Does anyone have experience about
that?

Greetings,

Nga
> > android-platfo...@googlegroups.com<android-platform%2Bunsu...@googlegroups.com>

Chad Fawcett

unread,
Nov 10, 2009, 11:06:51 AM11/10/09
to android-...@googlegroups.com
It looks like JBQ merged in the change in, so if you do a repo sync you should get the update without the git pull now (though you'll still need to copy it to your platform root, per the eclipse tips page).

--

You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=.


Reply all
Reply to author
Forward
0 new messages