How to add 'libs' folder in Android Studio?

AndroidAndroid StudioDirectoryLibs

Android Problem Overview


I need help in creating the 'libs' folder in Android Studio for my project (It is not auto-generated in my project).

When I want to create a folder, it gives me lots of options, like AIDL, Assets, JNI, Java, Java Resources, Renderscripts, and 'res' folders. I chose Res and added a libs folder but it didn't show up on my file structure on the left.

Can anyone help me?

I wanted to add a JAR file but I can't find libs to put in.

Android Solutions


Solution 1 - Android

The solution for me was very simple (after 10 hours of searching). Above where your folders are there is a combobox that says "android" click it and choose "Project".

enter image description here

Solution 2 - Android

*Click the left side dropdown menu *"android" and choose "project" to see libs folders

enter image description here

*after choosing project you will see the libs directory

Solution 3 - Android

libs and Assets folder in Android Studio:

Create libs folder inside app folder and Asset folder inside main in the project directory by exploring project directory.

Now come back to Android Studio and switch the combo box from Android to Project. enjoy...

Solution 4 - Android

Another strange thing. You wont see the libs folder in Android Studio, unless you have at least 1 file in the folder. So, I had to go to the libs folder using File Explorer, and then place the jar file there. Then, it showed up in Android Studio.

Solution 5 - Android

also, to get the right arrow, right click and "Add as Library".enter image description here

Solution 6 - Android

also you should click right button on mouse at your projectname and choose "open module settings" or press F4 button. Then on "dependencies" tab add your lib.jar to declare needed lib

Solution 7 - Android

You can create lib folder inside app you press right click and select directory you named as libs its will be worked

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDanzeeeeeView Question on Stackoverflow
Solution 1 - AndroiddangalgView Answer on Stackoverflow
Solution 2 - AndroidCristiana ChavezView Answer on Stackoverflow
Solution 3 - Androiduser2786685View Answer on Stackoverflow
Solution 4 - Androiduser3550270View Answer on Stackoverflow
Solution 5 - AndroidjimView Answer on Stackoverflow
Solution 6 - Androiduser3419036View Answer on Stackoverflow
Solution 7 - AndroidsubaView Answer on Stackoverflow