Are any of these workarounds compatible with Android test projects?

How do you prevent the Android library project, which is used by the
instrumented project as well as the test cases, from being added to
Test.apk and then failing at runtime with the cryptic "class resolved
by unexpected dex" error?

Joe


On May 4, 3:14 am, Max Gilead <[email protected]> wrote:
> There's even more hackish but perfectly working solution AND you get all the
> Android project niceties with it :)
>
> 1. Create regular Android project
> 2. Manually remove Android nature from .project file
> 3. Done :)
>
> Cheers,
> Max
>
> 2010/5/4 Mario Zechner <[email protected]>
>
>
>
>
>
> > Actually, i do something a bit nasty to get a seperate Android library
> > project. In your SDK folder you have several android jars for the
> > different Android versions. I simply create a Java project and add the
> > lowest Android version jar i want to support as a dependency et voila
> > you have a nice Android library project.
>
> > On 4 Mai, 08:11, Menion <[email protected]> wrote:
> > > You say that sharing resources between projects is coming? Hopefully,
> > > thx for very, very good info :)
>
> > > On May 3, 11:34 pm, Xavier Ducrohet <[email protected]> wrote:
>
> > > > If you're code is straight java with no android resources then just
> > > > create a Java project and reference it by your Android projects.
>
> > > > Android libraries allowing you to share (android specific) code and
> > > > resources between projects is not supported at the moment, but it's
> > > > coming.
>
> > > > Shared libraries are not supported at this time by the platform and I
> > > > don't think there's any plan for it.
>
> > > > Xav
>
> > > > 2010/5/3 Rafał Grzybowski <[email protected]>:
>
> > > > > I'm working on two android applications and would like to share some
> > > > > code between them. My guess is I need to create Java library and put
> > > > > all the required code there. But I don't know:
> > > > >  - what kind of project create for the library in Eclipse,
> > > > >  - does the shared library can contain Android resources,
> > > > >  - what about AndroidManifest.xml for the library, is it possible to
> > > > > have one,
> > > > >  - is it possible to deploy shared library once on the device or is
> > > > > it shareable during development and then deployed per Android
> > > > > application?
>
> > > > > Thank you.
>
> > > > > --
> > > > > 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]<android-developers%2Bunsubs
> > > > >  [email protected]>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Xavier Ducrohet
> > > > Android SDK Tech Lead
> > > > Google Inc.
>
> > > > Please do not send me questions directly. Thanks!
>
> > > > --
> > > > 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]<android-developers%2Bunsubs
> > > >  [email protected]>
> > > > For more options, visit this group athttp://
> > groups.google.com/group/android-developers?hl=en
>
> > > --
> > > 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]<android-developers%2Bunsubs
> > >  [email protected]>
> > > For more options, visit this group athttp://
> > groups.google.com/group/android-developers?hl=en
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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