I need help in creating libs in Android Studio for my project, mine are not auto generated.
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.
Click the left side dropdown menu "android" and choose "project" to see libs folders
*after choosing project you will see the libs directory
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...
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.
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
You can create lib folder inside app you press right click and select directory you named as libs its will be worked
来源:https://stackoverflow.com/questions/26956827/have-no-libs-directory-in-android-studio