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 6194627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:19:41+00:00 2026-05-24T03:19:41+00:00

I maintain an Android app and am not using Eclipse. I am not using

  • 0

I maintain an Android app and am not using Eclipse. I am not using Eclipse. I am using ant and build.xml and build.properties.

I have places my .jar file into the libs/ directory. My code compiles just dandy. But when I run it on the emulator, the output APK does not include the .jar, so I get a runtime stacktrace:

ERROR/AndroidRuntime(470): java.lang.NoClassDefFoundError: com.google.ads.AdView

my build.properties looks like this:

jar.libs.dir=libs

And the libs/ directory contains my .jar file.

What needs to be in build.xml so that the external .jar file is included in the APK?

Edit: In theory this answer should work, but it doesn’t for me. Is it out of date? What gives? How to add external jar libraries to an android project from the command line

  • 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-24T03:19:43+00:00Added an answer on May 24, 2026 at 3:19 am

    It turns out that I needed to upgrade the version of ant I was using to 1.8. During the compile process, I had been getting this error message:

    Warning: Reference out.dex.jar.input.ref has not been set at runtime,
    but was found duringbuild file parsing, attempting to resolve. Future
    versions of Ant may support referencing ids defined in non-executed
    targets.

    I googled it, and found that I needed to upgrade Ant, and now I don’t get this warning, and my application does not force close.

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

Sidebar

Related Questions

I have run my android app against the new build target provided by the
I am currently building an Android app where I will have to maintain two
I maintain the build system at my company, which is currently using CVS. This
I'm creating my first android app (or attempting to anyway) and i have a
I have an Android App that uses a TabHost layout. Every tab calls the
I have an Android app which by preference uses external storage if available to
I have a published app for Android 1.x and 2.x, and now I want
My goal is to maintain a web file server separately from my main ASP.NET
How would you maintain the legacy applications that: Has no unit tests have big
I have a Web Service and an Android application that uses this web service.

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.