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

  • Home
  • SEARCH
  • 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 5970803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:25:37+00:00 2026-05-22T20:25:37+00:00

I have a Android project which I’m building in Ant and I’m stuck on

  • 0

I have a Android project which I’m building in Ant and I’m stuck on system libraries: In Eclipse I’ve defined two system libraries, each consisting of a few jars, which I then include in my projects. I’ve tried copying these jar files to the libs dir of the projects which use them and I’m still getting the same errors when compiling with ant.

Is there a difference between using a system library and including jars in the libs folder? Is there something I’m missing – maybe some way of defining a system library in ant itself?

UPDATE:

It’s failing on the following code in main_rules.xml when executing ant compile

    <!-- Generates the R.java file for this project's resources. -->
<target name="-resource-src" depends="-dirs">
    <if condition="${manifest.hasCode}">
        <then>
            <echo>Generating R.java / Manifest.java from the resources...</echo>
            <aapt executable="${aapt}"
                    command="package"
                    verbose="${verbose}"
                    manifest="AndroidManifest.xml"
                    androidjar="${android.jar}"
                    rfolder="${gen.absolute.dir}">
                <res path="${resource.absolute.dir}" />
            </aapt>
        </then>
        <else>
            <echo>hasCode = false. Skipping...</echo>
        </else>
    </if>
</target>

I have added the libraries to the compile target javac task but this also doesn’t seem to work.

  • 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-05-22T20:25:37+00:00Added an answer on May 22, 2026 at 8:25 pm

    In Ant, you generally need to put jars on classpath explicitly. They are not automatically added to classpath just by putting them in a lib directory.

    Find where javac is done in your Ant buildfile and look at the classpath used. You will need to update this classpath to include each jar.

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

Sidebar

Related Questions

I have a android project which is huge in size with more than 100
I have two threads in an Android application, one is the view thread, and
I have a problem where Android projects I create in Eclipse are unable to
I have been strugling with a Bluetooth project on Android for weeks. Does anyone
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Can I have a class which extend a LinearLayout, as the main class of
I am working on a project which requires the use of Google Maps and
I've got a project which links to API level 11. When I run this

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.