Include projects as modules with relative path

后端 未结 2 1944
情话喂你
情话喂你 2021-01-23 05:34

I am trying to include external projects as modules in my app, but I want their path to be relative.

What I\'ve tried is the following:

settings.gradle

2条回答
  •  没有蜡笔的小新
    2021-01-23 05:48

    To do this you must follow this step:

    1. Open your project in Android Studio
    2. Go to File > Import Module and import the library as a module
    3. Go to File > Project Structure > Modules
    4. Locate your main project module, click on it. It should have a few android libraries, such as: support-v4, etc.
    5. Click on the more on the left green "+" button > Module dependency
    6. Select "your Library"

    or follow Androd's documentation

提交回复
热议问题