如何将库项目添加到AndroidStudio中的现有android项目

时间:2022-06-29 10:57:47

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

如何使用Android Studio 1.1将自定义库项目(在我的示例中为CuXtomCam库)添加到现有的android项目中?

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

我读过有关更改build.gradle文件的内容。但是我应该在哪里放置库资源?

Thank you in advance for all answers and comments!

提前感谢您的所有答案和评论!

2 个解决方案

#1


0  

To import library into Android Studio:

要将库导入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.

项目导入完成后,将打开一个名为“import-summary.txt”的文件,其中列出了导入过程中采取的所有步骤以及后续步骤的建议。例如,它可能会记录未迁移的文件,它可能会记录SDK安装中缺少的组件,依此类推。

#2


0  

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

右键单击项目,然后单击New> Module。从新窗口中选择导入现有项目。给出目录。我认为这会有所帮助

#1


0  

To import library into Android Studio:

要将库导入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.

项目导入完成后,将打开一个名为“import-summary.txt”的文件,其中列出了导入过程中采取的所有步骤以及后续步骤的建议。例如,它可能会记录未迁移的文件,它可能会记录SDK安装中缺少的组件,依此类推。

#2


0  

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

右键单击项目,然后单击New> Module。从新窗口中选择导入现有项目。给出目录。我认为这会有所帮助