Sunday, August 19, 2012

Re: [android-developers] Ant Dex creating a apk

there is only one android.jar that you use, they are stubs for the
Android pieces of your project, and that is it.

Your jars are the extenal libraries that you will use, they typically
go in the libs/ folder of your project.

You create a new project by doing an 'android project update -p .'
with possible additional parameters. The android tool will scaffold
an Android project build script for you from templates in the sdk, and
by default you will get a generic build.xml from the Android SDK which
you probably won't need to modify.

What classes are being multiply defined? This is typically caused by
an incorrect build configuration, or perhaps you are not using an
Android library project when you should indeed be.

Give some more clarification as to what you have tried and why it's
not working for you,

kris

On Fri, Aug 17, 2012 at 1:22 PM, Eric <eric.swanson314@gmail.com> wrote:
> We are attempting to create our apk using the ant build system. Our Eclipse
> workspace has several other android jar libraries. After having Android ant
> create our ant project file, we are having the following issues:
>
> 1. The ant build script is building the Android libraries with a name of
> classes.jar and not the project name
> 2. The dex part of the build is throwing exceptions saying that our classes
> have been multiply defined? How do we resolve this?
> 3. The dex part of the build script is asking for our library jar files to
> be named classes.jar, how do we change the script to use a different name?
>
> This Eclipse workspace is building fine in Eclipse, is there another option
> for building the project outside of Eclipse?
>
> Thanks
>
> Eric
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment