Monica
Monica

Reputation: 389

commons-io-2.4.jar both in the libs folder and in the Android Private Libraries - is it a mistake?

I have the same jar file commons-io-2.4.jar both in the libs folder and in the Android Private Libraries. Is this a mistake? I got into this situation because I added the jar file to the Private Libraries and then I was told that it should be in the libs folder. I managed to put it in the libs folder, but I cannot delete it from the Private Libraries.

It looks like a method from this jar file does not work, because my application does not do anything after I call this method. And I don't get any error.

Upvotes: 1

Views: 673

Answers (3)

Monica
Monica

Reputation: 389

I solved the problem, I need to put the input file in the sd card and to provide the right path.

Upvotes: 0

Gaurav Berry
Gaurav Berry

Reputation: 137

Actually the commons-io-2.4.jar both in the libs folder and in the Android Private Libraries because Android Private Library folder references the jars in libs folder. Private Library folder only holds references and used these during the creation of apk. And you can delete references from this Private Libraries.

According to my understanding you have to put commons-io-2.4.jar in assests folder and add it to add to build path and check order and export in Java Build Path. This works.

Upvotes: 1

NasaGeek
NasaGeek

Reputation: 2198

Putting a .jar file in your libs folder should cause it to automatically show up in the Android Private Libraries section, so that should be fine. What exactly is the method's expected behavior, and what is actually occurring?

Upvotes: 2

Related Questions