Android studio add external project to build.gradle

后端 未结 6 2015
半阙折子戏
半阙折子戏 2020-11-22 16:16

I have a sample project, with the following setup:

/root
  + Pure Java Lib
  + Android Test Lib
  + Android Test Project

Where the \'Te

6条回答
  •  庸人自扰
    2020-11-22 16:47

    Right click on project - Select "Open Module Settings" - Select "Modules" in left pane - Click on "+" symbol on top - Choose "Import Module".

    After importing Module. You need to add it as a dependency for your current project.

    Keep "Modules" Selected in left pane and click on your project - Now Go in dependencies tab and click on "+" symbol that is located at bottom - Choose third option "Module Dependencies" and if you have imported your project correctly, it will show you the all available module that can be added as a dependency to your current project.

提交回复
热议问题