Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7771033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:32:56+00:00 2026-06-01T16:32:56+00:00

With respect to this question , simply putting a jar into the /libs does

  • 0

With respect to this question, simply putting a jar into the /libs does not auto-magically include that jar into the .dex when invoking, say, ant debug. Not at least with Android SDK ver 15.

I’ve verified this by comparing the same project created two different ways. First (call it ‘Alpha’), by Eclipse. Second, via android create project ..., blah blah blah (the Ant way, call it ‘Bravo’).

Both Alpha and Bravo I built using ant debug. Comparing their /bin dirs, the jar under <project_root>/libs is missing from Bravo’s *.d; Alpha’s aren’t.

What magic is Eclipse embedding during project creation?

Better still, how can I ensure a jar is passed to ant debug|release when building a project, that a jar is included in the endstate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:32:58+00:00Added an answer on June 1, 2026 at 4:32 pm

    You may just have to adjust the build.xml to include something like the following in the -pre-build node if you want to hardwire it in. You can also add this in a custom target in the build.xml file that would able you do include from the command line when you want. Something like the following could work.

    <target name="add-jar">
        <copy file="${src.folder}/YourJarHere.jar" tofile="libs/YourJarHere.jar" overwrite="true"/>
    </target>
    

    Where ${src.folder} is defined in your ant.properties file.

    Something like src.folder=PATHOFYOURJAR

    Then you should be able to run

    ant debug add-jar
    

    including the file.

    I have had to manually create the libs folder in the past but I don’t see why you can’t do this through the build.xml file. Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me first say that I realize this question is vague and does not
With respect to this question, we can declare a function that returns pointer to
Does the jQuery $.ajaxSetup method not respect the data field in the options hash
This question is with respect to local host on my PC which is shared
This might look like a beaten question, but could not find an answer at
This question is with respect to the Recommendation part of Apache Mahout using Pearson's
Note: This is not a question whether I should use list or deque. It's
In answering this question, I came across this difference in behaviour with respect to
I am writing a CSV exporter in Java that should respect the user's custom
Simplified from this question and got rid of possible affect from LinqPad(no offsensive), a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.