How to add library project to an existing android project in AndroidStudio

╄→尐↘猪︶ㄣ 提交于 2019-12-11 05:14:31

问题


how can I add a custom library project (in my example the CuXtomCam library) to an existing android project using Android Studio 1.1?

I've read about changing the build.gradle file. But where should I place the library ressources?

Thank you in advance for all answers and comments!


回答1:


To import library into Android Studio:

  • select File > Import, and then select the directory containing the project to import.

  • a wizard will open and guide you through the rest of the import process.

When the project import has finished, it will open up a file called "import-summary.txt" which lists all the steps taken during import and suggestions for next steps. For example, it may note files that were not migrated, it may note missing components in your SDK install, and so on.




回答2:


Just right click on the project then New>Module. from the new window select Import existing project. Give the directory. I think this will help



来源:https://stackoverflow.com/questions/30011217/how-to-add-library-project-to-an-existing-android-project-in-androidstudio

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