This is the 31st day of my participation in the August More Text Challenge.
preface
During Android development, there are times when other projects are referenced to the current project as needed, and referenced in the form of a Module. So this blog post will share how to refer to other projects in the form of modules in the current project, easy to use developers.
For example, if the project developed before needs to reference bluetooth method, the Bluetooth part of another project can be directly made into a demo and directly referenced to the current project in the form of Module. This post will describe the steps of referring to a method for later use.
steps
Import from current project,The Import Module…
2. Select a file directory and select the file to import
Iii. Modify according to the actual situationModuleThe name of the
If there is no duplicate name can not be modified; Check the “Import” option on the right and click the “Finish” button
4. You can see the import location in the left file structure of the project
V. Project association for Module
Click the “Project Structure” icon in the toolbar at the top of the Project, or click File — >Project Structure at the top left… Direct access to
1. Click the “Project Structure” icon in the tool menu bar at the top of the project
2, Click File — >Project Structure… Direct entry method
Click on the “Dependencies” module
Pop up the main interface of Project Structure, then click the Module “Dependencies”, find the first line, select “Module Dependency” in the drop-down box, and click the “OK” button.
The last
Above six steps is introduced how to correct the project through the Module in the form of a reference to another project, but there is no introduction reference later encountered an error, need to pay attention to depending on the actual situation to carry on the concrete solution, especially the analysis of the error message, here no longer introduced after an error problem.
The above is all the content of this chapter. Welcome to pay attention to the wechat public account “Program Ape by Three Managers”, and the Sina weibo account of three managers “Three managers 666” ****, welcome to pay attention!