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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:11:31+00:00 2026-06-01T10:11:31+00:00

I am trying to build my android project using ant in command line mode.

  • 0

I am trying to build my android project using ant in command line mode.
It works with eclipse and it used to work with ant until i installed the latest android sdk.

I run ant release -buildfile projectdir\build.xml. The compilation process is ok, and after aligning the apk, it fails at runtime with ClassDefNotFoundError acra.ACRA.
I have tried to remove any reference to acra from the project, but it will fail at runtime when trying to execute any code coming from a library jar.

My jars are in the libs folder at the root of the project. And I sort of understood this would cause ant to link them into the apk. But it doesn’t.

When I used a previous version of the android sdk, I had a file named build.properties with an attribute referencing the jars folder external.libs.dir=libs. But now I can’t make this to work any more, even if I use the new attributes names jar.libs.dir=libs and the new attributes file name ant.properties.

I read that ClassDefNotFoundError is caused because at compile time the librairies are found, but they are not linked into the apk, so they can’t be found at runtime.
How can I link the external jars in the apk please ?

  • 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-01T10:11:32+00:00Added an answer on June 1, 2026 at 10:11 am

    The compilation process is ok, and after aligning the apk, it fails at runtime with ClassDefNotFoundError acra.ACRA

    There is no acra.ACRA class in ACRA, at least not in the current edition. It’s org.acra.ACRA.

    My jars are in the libs folder at the root of the project. And I sort of understood this would cause ant to link them into the apk. But it doesn’t.

    Yes, it does. Then ProGuard is removing them, unless you teach ProGuard not to.

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

Sidebar

Related Questions

I am trying to build my Android project with Ant. Whenever I use Eclipse
I'm trying to build an Android project using the ndk, but I have run
I am trying to build and run an android project using the phonegap framework.
I've got a Android AppEngine Connected Project I'm trying to build using GWT2.4 RequestFactory
I am loosing my mind trying to build my NDK project from eclipse using
I'm trying to clone an Android project using Eclipse, the Android SDK, and the
Recently, all of my Android project in Eclipse had errors trying to build the
I'm trying to import an Android project into my Eclipse workspace, using existing source
At the moment I'm trying to build some integration tests for an android project.
I'm trying to build an application using the facebook-android-sdk. I've pulled the sdk off

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.