Okay, just another thing in case anyone is interested, I got the
source for the ADT and added some code to BaseBuilder so that when
ApkBuilder scans for external jars to package up as part of the
classes.dex file it omits jars which are already on the classpath of a
referenced project which has the android nature, this allows me to
continue with the two project setup as the neccessary code is only
copied once.

On Aug 6, 12:30 pm, Alex G <[email protected]> wrote:
> Just in case anyone else wanders across this post, I found some info
> on project setup 
> her:http://stackoverflow.com/questions/468220/how-do-you-run-android-inst...
>
> On Aug 5, 11:33 pm, Alex G <[email protected]> wrote:
>
> > okay that makes sense, thankyou. I've been googling for a while and I
> > can't really find any good resources on how to setup as a single
> > project, everyone is using the standard two projects, can anyone point
> > me to something?
>
> > I'm still finding it hard to believe that theres no way to share the
> > code across the two projects, I've tried making the third party jar a
> > required export in the project I am testing but I still get the same
> > error.
>
> > Cheers
>
> > On Aug 5, 6:57 pm, fadden <[email protected]> wrote:
>
> > > On Aug 5, 10:11 am, Alex G <[email protected]> wrote:
>
> > > > Thanks, I'll give that a try. Is it only the case that you need a
> > > > single project if you have a third party library? The reason I ask is
> > > > that all of the blogs and discussions I have found about unit testing
> > > > have advocated using two projects.
>
> > > Having two copies of the same class will sometimes cause you grief.
> > > "dexopt" does various optimizations with the copy it finds, so if you
> > > manage to use a different copy at run time the VM will throw an
> > > exception (the optimizations can't be re-done on the fly to factor in
> > > differences between the two versions of the class).
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to