Home » Android » java – Where the heck is the Android app's lib folder?

java – Where the heck is the Android app's lib folder?

Posted by: admin June 15, 2020 Leave a comment

Questions:

I’ve been trying to find the so-called lib folder, to install some 3rd-party tools (this) there. They tell you to: “place it (downloaded jar file) in your Android app’s libs/ folder”. But, in Eclipse, I could not find the lib folder even after expanding all of the directories shown in the navigator area. Will someone tell me where this lib folder is? Thanks.

How to&Answers:

If you use Eclipse do the following:

  1. Right-click your project and hit ‘Project Properties’.
  2. Choose ‘Java Build Path’.
  3. Choose the ‘Libraries’ tab.
  4. Hit ‘Add External JARs…’.
  5. Navigate to your desired .jar-file and hit ‘Open’.
  6. Click ‘OK’.

Then you should be able to reference your external library.

Answer:

You have to create it if it’s not already there. It should be in the top level of your project folder, at the same level as the src and res folders.

Answer:

Your lib folder is indeed used for storing external libraries.

This is commonly used to hold external .jars for external libraries, similar to how a .dll works.

You need to place the files in this folder yourself, then add them to the project as an existing archive to use them.

Let me know if this is unclear or you have any more questions!

EDIT:

You need to make sure you’re putting this in your imports:

import myLib.fullyQualifiedClassName.*;

Hope this helps!