Android Studio: “new module -> import existing project” vs. “import module”

后端 未结 6 1112
陌清茗
陌清茗 2021-01-04 06:14

What I have:

Four independently working Android modules:

  1. MyProjectMainModule, a main container application, attached to MyProje

6条回答
  •  孤独总比滥情好
    2021-01-04 06:41

    This worked out for me:

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

提交回复
热议问题