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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:47:17+00:00 2026-06-13T20:47:17+00:00

I have an Android application project (A) and an Android library project (L). A

  • 0

I have an Android application project (A) and an Android library project (L). A uses L as a library.

L, the library project, uses a few external libraries already: Apache Commons Codec 1.7, Apache Commons Lang3 3.1, the Android Support library V4, and ActionBarSherlock 4.0, referenced as a library project. All of these libraries, and the code that calls them, work perfectly fine, and have been working fine for a while.

However, I recently added one more library: Apache Commons IO 2.4. Now my application crashes any time the library code (in L) tries to call a method in Commons IO.

I’ve added the IO library in exactly the same way as I’ve added every other external library: build path

When my application first starts I get:

11-01 12:32:14.243: I/dalvikvm(3815): Could not find method org.apache.commons.io.FileUtils.copyInputStreamToFile, referenced from method au.com.grdc.alib.helpers.LibraryCommon.download
11-01 12:32:14.243: W/dalvikvm(3815): VFY: unable to resolve static method 7039: Lorg/apache/commons/io/FileUtils;.copyInputStreamToFile (Ljava/io/InputStream;Ljava/io/File;)V

Later on I get:

11-01 14:50:48.913: E/AndroidRuntime(10030): FATAL EXCEPTION: AsyncTask #1
11-01 14:50:48.913: E/AndroidRuntime(10030): java.lang.RuntimeException: An error occured while executing doInBackground()
...
11-01 12:35:10.268: E/AndroidRuntime(4493): Caused by: java.lang.NoClassDefFoundError: org.apache.commons.io.FileUtils
11-01 12:35:10.268: E/AndroidRuntime(4493):     at au.com.grdc.alib.helpers.LibraryCommon.download(LibraryCommon.java:89)

I saw that it was recommended to rename my “lib” folder to “libs”, which I’ve done — this hasn’t fixed the problem.

I also saw recommendations to mark external libraries to be exported, which I’ve also done, and which also hasn’t fixed the problem.

  • 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-13T20:47:19+00:00Added an answer on June 13, 2026 at 8:47 pm
    1. Update your eclipse-android-plugin and android-tools (They have changed how libs are handled a while ago)
    2. Make sure, that you have in your project the ‘libs’ (not ‘lib’) folder.
    3. Put all your library jars in the ‘libs’ folder.
    4. Make sure that your library jars in the ‘libs’ folder are NOT added to the build path like you would in plain java projects. Android will add them automatically. If you look at Project > Properties > Java Build Path > Libraries:
      1. Ensure that there is no single one of your library jars shown on the top-level (remove them otherwise)
      2. Check that there is an auto-created top-level dependency group called ‘Android Dependencies’.
      3. Check that all your jars from the libs folder have been automatically added to the ‘Android Dependencies’ group

    Do the above steps for both, (A) and (L).

    Also ensure that (A) has no plain-java-style project dependency on (L).
    Project > Properties > Java Build Path > Projects for (A) should not list (L), remove otherwise.

    Ensure that Project > Properties > Android for (A) lists in the Library section project (L), add otherwise.

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

Sidebar

Related Questions

I have an Android library project and the main application that uses this library
I have library project and regular android project which uses it. Library project: src
I have an Android project(A) that uses one library module(B) in Intellij IDEA 11.
I have a project idea for my college project to develop an android application
I have two Android projects, a 'library project' containing a custom layout, and an
I have a library android project Library (with activities and all) and a normal
I have an android application which uses jni and I'm trying to automate build
I'm using Eclipse to manage my Android project, which uses Amazon's Android libraries for
I have a library that contains a subclass of the Android Application class. The
I'm using this library project in my Android application. But I need to make

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.