How to add library's in android studio 1.1.0 [duplicate]

浪尽此生 提交于 2019-12-23 12:17:35

问题


i have not updated one of my apps in a while and i decided to start a all new project, i use to put all my library in a "libs" file in my app folder. but in the new android studio version i don't no where to put my library, can you help me? this is the new file structure. i apologize if its a stupid question.

this was the old way i had library's. ignore the red haha.


回答1:


Change your File strucure Android =====>> Project

In you Android studio on click on the Android icon on top of your first pic select Project structure there you will get libs folder




回答2:


Go to your gradle scripts and there will be a dependencies section. You can add a compile-time library like this: compile 'com.afollestad:material-dialogs:0.6.3.1'. You will need to find the id for your library.

If your library is not present on the jcenter repos, you can drop the jar for your library in the libs folder by opening it in a file browser, or switching the view method at the top to Project from Android.



来源:https://stackoverflow.com/questions/29317660/how-to-add-librarys-in-android-studio-1-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!